(filepath, driver)
| 25 | |
| 26 | @pytest.mark.parametrize("filepath", find_notebooks()) |
| 27 | def 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 | |
| 42 | def get_notebook_html(filepath_notebook): |
nothing calls this directly
no test coverage detected