MCPcopy
hub / github.com/pytest-dev/pytest / pytest_collect_file

Function pytest_collect_file

doc/en/example/nonpython/conftest.py:7–9  ·  view source on GitHub ↗
(parent, file_path)

Source from the content-addressed store, hash-verified

5
6
7def pytest_collect_file(parent, file_path):
8 if file_path.suffix == ".yaml" and file_path.name.startswith("test"):
9 return YamlFile.from_parent(parent, path=file_path)
10
11
12class YamlFile(pytest.File):

Callers

nothing calls this directly

Calls 1

from_parentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…