Fix hook param name in nonpython example

Follow up to #9363
This commit is contained in:
Florian Bruhin 2021-12-06 20:32:05 +01:00
parent 70d3d0f390
commit 6641840c20
1 changed files with 3 additions and 3 deletions

View File

@ -2,9 +2,9 @@
import pytest
def pytest_collect_file(parent, fspath):
if fspath.suffix == ".yaml" and fspath.name.startswith("test"):
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)
class YamlFile(pytest.File):