Test some data types for a location arg.
()
| 43 | |
| 44 | |
| 45 | def 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 | |
| 56 | class TestFolium: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…