MCPcopy Create free account
hub / github.com/python-visualization/folium / test_location_args

Function test_location_args

tests/test_folium.py:45–53  ·  view source on GitHub ↗

Test some data types for a location arg.

()

Source from the content-addressed store, hash-verified

43
44
45def test_location_args():
46 """Test some data types for a location arg."""
47 location = np.array([45.5236, -122.6750])
48 m = folium.Map(location)
49 assert m.location == [45.5236, -122.6750]
50
51 df = pd.DataFrame({"location": [45.5236, -122.6750]})
52 m = folium.Map(df["location"])
53 assert m.location == [45.5236, -122.6750]
54
55
56class TestFolium:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…