diff --git a/tests/test_examples/conftest.py b/tests/test_examples/conftest.py index a1539d144..33af78571 100644 --- a/tests/test_examples/conftest.py +++ b/tests/test_examples/conftest.py @@ -1,8 +1,8 @@ - import pytest @pytest.fixture(scope="session") def examples_path(): from pathlib import Path + return Path(__file__).parents[2] / "examples" diff --git a/tests/test_examples/test_examples.py b/tests/test_examples/test_examples.py index b7895ed23..42cf7cf53 100644 --- a/tests/test_examples/test_examples.py +++ b/tests/test_examples/test_examples.py @@ -1,4 +1,3 @@ - import pytest from tests.utils import run_notebook diff --git a/tests/utils/jupyter.py b/tests/utils/jupyter.py index 8a825cd8e..fad68444b 100644 --- a/tests/utils/jupyter.py +++ b/tests/utils/jupyter.py @@ -1,7 +1,7 @@ - import nbformat from nbconvert.preprocessors import ExecutePreprocessor + def run_notebook(path): with open(str(path)) as f: nb = nbformat.read(f, nbformat.NO_CONVERT)