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 70d3d0f commit 0a9a4a3Copy full SHA for 0a9a4a3
doc/en/example/nonpython/conftest.py
@@ -2,9 +2,9 @@
2
import pytest
3
4
5
-def pytest_collect_file(parent, fspath):
6
- if fspath.suffix == ".yaml" and fspath.name.startswith("test"):
7
- return YamlFile.from_parent(parent, path=fspath)
+def pytest_collect_file(parent, collection_path):
+ if collection_path.suffix == ".yaml" and collection_path.name.startswith("test"):
+ return YamlFile.from_parent(parent, path=collection_path)
8
9
10
class YamlFile(pytest.File):
0 commit comments