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

Function test_issue151_load_all_conftests

testing/test_conftest.py:154–162  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

152
153
154def test_issue151_load_all_conftests(pytester: Pytester) -> None:
155 names = "code proj src".split()
156 for name in names:
157 p = pytester.mkdir(name)
158 p.joinpath("conftest.py").touch()
159
160 pm = PytestPluginManager()
161 conftest_setinitial(pm, names)
162 assert len(set(pm.get_plugins()) - {pm}) == len(names)
163
164
165def test_conftest_global_import(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

PytestPluginManagerClass · 0.90
conftest_setinitialFunction · 0.85
mkdirMethod · 0.45

Tested by

no test coverage detected