parent
70d3d0f390
commit
3a479db126
|
@ -2,9 +2,9 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
def pytest_collect_file(parent, fspath):
|
def pytest_collect_file(parent, file_path):
|
||||||
if fspath.suffix == ".yaml" and fspath.name.startswith("test"):
|
if file_path.suffix == ".yaml" and file_path.name.startswith("test"):
|
||||||
return YamlFile.from_parent(parent, path=fspath)
|
return YamlFile.from_parent(parent, path=file_path)
|
||||||
|
|
||||||
|
|
||||||
class YamlFile(pytest.File):
|
class YamlFile(pytest.File):
|
||||||
|
|
Loading…
Reference in New Issue