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

Method test_setuppy_fallback

testing/test_config.py:1374–1382  ·  view source on GitHub ↗
(self, tmp_path: Path)

Source from the content-addressed store, hash-verified

1372 assert parsed_inipath == inipath
1373
1374 def test_setuppy_fallback(self, tmp_path: Path) -> None:
1375 a = tmp_path / "a"
1376 a.mkdir()
1377 (a / "setup.cfg").touch()
1378 (tmp_path / "setup.py").touch()
1379 rootpath, inipath, inicfg = determine_setup(None, [str(a)])
1380 assert rootpath == tmp_path
1381 assert inipath is None
1382 assert inicfg == {}
1383
1384 def test_nothing(self, tmp_path: Path, monkeypatch: MonkeyPatch) -> None:
1385 monkeypatch.chdir(tmp_path)

Callers

nothing calls this directly

Calls 2

determine_setupFunction · 0.90
mkdirMethod · 0.45

Tested by

no test coverage detected