Skip to content

Commit

Permalink
Drop nbvalx hooks which have been removed upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-ballarin committed Jan 15, 2024
1 parent de4d2e5 commit 3f91e52
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tutorials/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@
pytest_addoption = nbvalx.pytest_hooks_notebooks.addoption
pytest_sessionstart = nbvalx.pytest_hooks_notebooks.sessionstart
pytest_collect_file = nbvalx.pytest_hooks_notebooks.collect_file
pytest_runtest_makereport = nbvalx.pytest_hooks_notebooks.runtest_makereport
pytest_runtest_teardown = nbvalx.pytest_hooks_notebooks.runtest_teardown


def pytest_runtest_setup(item: nbvalx.pytest_hooks_notebooks.IPyNbFile) -> None:
"""Skip tests if dolfinx is not available."""
# Do the setup as in nbvalx
nbvalx.pytest_hooks_notebooks.runtest_setup(item)
# Check dolfinx availability
pytest.importorskip("dolfinx")

0 comments on commit 3f91e52

Please sign in to comment.