MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_conftestcutdir_inplace_considered

Function test_conftestcutdir_inplace_considered

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

Source from the content-addressed store, hash-verified

207
208
209def test_conftestcutdir_inplace_considered(pytester: Pytester) -> None:
210 conf = pytester.makeconftest("")
211 conftest = PytestPluginManager()
212 conftest_setinitial(conftest, [conf.parent], confcutdir=conf.parent)
213 values = conftest._getconftestmodules(
214 conf.parent, importmode="prepend", rootpath=pytester.path
215 )
216 assert len(values) == 1
217 assert values[0].__file__.startswith(str(conf))
218
219
220@pytest.mark.parametrize("name", "test tests whatever .dotdir".split())

Callers

nothing calls this directly

Calls 4

_getconftestmodulesMethod · 0.95
PytestPluginManagerClass · 0.90
conftest_setinitialFunction · 0.85
makeconftestMethod · 0.45

Tested by

no test coverage detected