def test_custom_carto_vl_path(self): """Map dev path should use custom paths""" _carto_vl_path = 'custom_carto_vl_path' map = Map(_carto_vl_path=_carto_vl_path) map._repr_html_() template = map._html_map.html assert _carto_vl_path + constants.CARTO_VL_DEV in template
def test_default_airship_path(self): """Map dev path should use default paths if none are given""" map = Map() map._repr_html_() template = map._html_map.html assert constants.AIRSHIP_COMPONENTS_URL in template assert constants.AIRSHIP_BRIDGE_URL in template assert constants.AIRSHIP_STYLES_URL in template assert constants.AIRSHIP_MODULE_URL in template assert constants.AIRSHIP_ICONS_URL in template
def test_custom_airship_path(self): """Map dev path should use custom paths""" _airship_path = 'custom_airship_path' map = Map(_airship_path=_airship_path) map._repr_html_() template = map._html_map.html assert _airship_path + constants.AIRSHIP_COMPONENTS_DEV in template assert _airship_path + constants.AIRSHIP_BRIDGE_DEV in template assert _airship_path + constants.AIRSHIP_STYLES_DEV in template assert _airship_path + constants.AIRSHIP_MODULE_DEV in template assert _airship_path + constants.AIRSHIP_ICONS_DEV in template
def test__init(self): """Map should return a valid template""" map = Map() map._repr_html_() assert map.bounds is not None assert map._html_map is not None
def test_default_carto_vl_path(self): """Map dev path should use default paths if none are given""" map = Map() map._repr_html_() template = map._html_map.html assert constants.CARTO_VL_URL in template