MCPcopy Index your code
hub / github.com/pytest-dev/pytest / test_conftest_in_nonpkg_with_init

Function test_conftest_in_nonpkg_with_init

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

Source from the content-addressed store, hash-verified

130
131
132def test_conftest_in_nonpkg_with_init(tmp_path: Path, _sys_snapshot) -> None:
133 tmp_path.joinpath("adir-1.0/b").mkdir(parents=True)
134 tmp_path.joinpath("adir-1.0/conftest.py").write_text(
135 "a=1 ; Directory = 3", encoding="utf-8"
136 )
137 tmp_path.joinpath("adir-1.0/b/conftest.py").write_text(
138 "b=2 ; a = 1.5", encoding="utf-8"
139 )
140 tmp_path.joinpath("adir-1.0/b/__init__.py").touch()
141 tmp_path.joinpath("adir-1.0/__init__.py").touch()
142 ConftestWithSetinitial(tmp_path.joinpath("adir-1.0", "b"))
143
144
145def test_doubledash_considered(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

ConftestWithSetinitialFunction · 0.85
write_textMethod · 0.80
mkdirMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…