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

Function test_conftestcutdir_inplace_considered

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

Source from the content-addressed store, hash-verified

239
240
241def test_conftestcutdir_inplace_considered(pytester: Pytester) -> None:
242 conf = pytester.makeconftest("")
243 conftest = PytestPluginManager()
244 conftest_setinitial(conftest, [conf.parent], confcutdir=conf.parent)
245 values = conftest._getconftestmodules(conf.parent)
246 assert len(values) == 1
247 assert values[0].__file__ is not None
248 assert values[0].__file__.startswith(str(conf))
249
250
251@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