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

Function test_conftest_in_nonpkg_with_init

testing/test_conftest.py:122–128  ·  view source on GitHub ↗
(tmp_path: Path, _sys_snapshot)

Source from the content-addressed store, hash-verified

120
121
122def test_conftest_in_nonpkg_with_init(tmp_path: Path, _sys_snapshot) -> None:
123 tmp_path.joinpath("adir-1.0/b").mkdir(parents=True)
124 tmp_path.joinpath("adir-1.0/conftest.py").write_text("a=1 ; Directory = 3")
125 tmp_path.joinpath("adir-1.0/b/conftest.py").write_text("b=2 ; a = 1.5")
126 tmp_path.joinpath("adir-1.0/b/__init__.py").touch()
127 tmp_path.joinpath("adir-1.0/__init__.py").touch()
128 ConftestWithSetinitial(tmp_path.joinpath("adir-1.0", "b"))
129
130
131def test_doubledash_considered(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 2

ConftestWithSetinitialFunction · 0.85
mkdirMethod · 0.45

Tested by

no test coverage detected