We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bec03ad commit b051746Copy full SHA for b051746
example/test_examples.py
@@ -56,7 +56,9 @@ def _notebook_run(self, path):
56
Execute a notebook and collect output.
57
Returns (parsed nb object, execution errors)
58
"""
59
- notebook = pytest_notebook.notebook.load_notebook(path=path)
+ dirname, nb_name = os.path.split(path)
60
+ os.chdir(dirname)
61
+ notebook = pytest_notebook.notebook.load_notebook(path=nb_name)
62
result = pytest_notebook.execution.execute_notebook(
63
notebook,
64
with_coverage=False,
0 commit comments