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

Function test_notebook

tests/selenium/test_selenium.py:27–39  ·  view source on GitHub ↗
(filepath, driver)

Source from the content-addressed store, hash-verified

25
26@pytest.mark.parametrize("filepath", find_notebooks())
27def test_notebook(filepath, driver):
28 if "WmsTimeDimension" in filepath:
29 pytest.xfail("WmsTimeDimension.ipynb external resource makes this test flaky")
30 for filepath_html in get_notebook_html(filepath):
31 driver.get_file(filepath_html)
32 try:
33 assert driver.wait_until(".folium-map")
34 except UnexpectedAlertPresentException:
35 # in Plugins.ipynb we get an alert about geolocation permission
36 # for some reason it cannot be closed or avoided, so just ignore it
37 print("skipping", filepath_html, "because of alert")
38 continue
39 driver.verify_js_logs()
40
41
42def get_notebook_html(filepath_notebook):

Callers

nothing calls this directly

Calls 4

get_notebook_htmlFunction · 0.85
get_fileMethod · 0.80
wait_untilMethod · 0.80
verify_js_logsMethod · 0.80

Tested by

no test coverage detected