Fix hook param name in nonpython example (#9373)

Follow up to #9363
This commit is contained in:
Florian Bruhin 2021-12-06 22:55:06 +01:00 committed by GitHub
parent 70d3d0f390
commit 3a479db126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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):