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 76e052a commit 3581d24Copy full SHA for 3581d24
nbval/plugin.py
@@ -134,14 +134,14 @@ def pytest_configure(config):
134
135
136
137
-def pytest_collect_file(collection_path, parent):
+def pytest_collect_file(file_path, parent):
138
"""
139
Collect IPython notebooks using the specified pytest hook
140
141
opt = parent.config.option
142
- if (opt.nbval or opt.nbval_lax) and collection_path.suffix == ".ipynb":
+ if (opt.nbval or opt.nbval_lax) and file_path.suffix == ".ipynb":
143
# https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent
144
- return IPyNbFile.from_parent(parent, path=collection_path)
+ return IPyNbFile.from_parent(parent, path=file_path)
145
146
147
comment_markers = {
0 commit comments