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

Function test_doubledash_considered

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

Source from the content-addressed store, hash-verified

129
130
131def test_doubledash_considered(pytester: Pytester) -> None:
132 conf = pytester.mkdir("--option")
133 conf.joinpath("conftest.py").touch()
134 conftest = PytestPluginManager()
135 conftest_setinitial(conftest, [conf.name, conf.name])
136 values = conftest._getconftestmodules(
137 conf, importmode="prepend", rootpath=pytester.path
138 )
139 assert len(values) == 1
140
141
142def 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