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

Function test_doubledash_considered

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

Source from the content-addressed store, hash-verified

143
144
145def test_doubledash_considered(pytester: Pytester) -> None:
146 conf = pytester.mkdir("--option")
147 conf.joinpath("conftest.py").touch()
148 conftest = PytestPluginManager()
149 conftest_setinitial(conftest, [conf.name, conf.name])
150 values = conftest._getconftestmodules(conf)
151 assert len(values) == 1
152
153
154def test_issue151_load_all_conftests(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected