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 6641840Copy full SHA for 6641840
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, file_path):
+ if file_path.suffix == ".yaml" and file_path.name.startswith("test"):
+ return YamlFile.from_parent(parent, path=file_path)
8
9
10
class YamlFile(pytest.File):
0 commit comments