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

Method test_pytestini_overrides_empty_other

testing/test_config.py:1364–1372  ·  view source on GitHub ↗
(self, tmp_path: Path, name: str)

Source from the content-addressed store, hash-verified

1362
1363 @pytest.mark.parametrize("name", ["setup.cfg", "tox.ini"])
1364 def test_pytestini_overrides_empty_other(self, tmp_path: Path, name: str) -> None:
1365 inipath = tmp_path / "pytest.ini"
1366 inipath.touch()
1367 a = tmp_path / "a"
1368 a.mkdir()
1369 (a / name).touch()
1370 rootpath, parsed_inipath, _ = determine_setup(None, [str(a)])
1371 assert rootpath == tmp_path
1372 assert parsed_inipath == inipath
1373
1374 def test_setuppy_fallback(self, tmp_path: Path) -> None:
1375 a = tmp_path / "a"

Callers

nothing calls this directly

Calls 2

determine_setupFunction · 0.90
mkdirMethod · 0.45

Tested by

no test coverage detected