MCPcopy
hub / github.com/python-visualization/folium / test_json_request

Method test_json_request

tests/test_folium.py:492–503  ·  view source on GitHub ↗

Test requests for remote GeoJSON files.

(self)

Source from the content-addressed store, hash-verified

490 assert m.global_switches.disable_3d
491
492 def test_json_request(self):
493 """Test requests for remote GeoJSON files."""
494 self.m = folium.Map(zoom_start=4)
495
496 # Adding remote GeoJSON as additional layer.
497 GeoJson(remote_url, smooth_factor=0.5).add_to(self.m)
498
499 self.m._parent.render()
500 bounds = self.m.get_bounds()
501 np.testing.assert_allclose(
502 bounds, [[18.948267, -178.123152], [71.351633, 173.304726]]
503 )
504
505 def test_control_typecheck(self):
506 m = folium.Map(

Callers

nothing calls this directly

Calls 4

GeoJsonClass · 0.90
add_toMethod · 0.80
get_boundsMethod · 0.80
renderMethod · 0.45

Tested by

no test coverage detected