MCPcopy
hub / github.com/pytest-dev/pytest / test_setuppy_fallback

Method test_setuppy_fallback

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

Source from the content-addressed store, hash-verified

1980 assert parsed_inipath == inipath
1981
1982 def test_setuppy_fallback(self, tmp_path: Path) -> None:
1983 a = tmp_path / "a"
1984 a.mkdir()
1985 (a / "setup.cfg").touch()
1986 (tmp_path / "setup.py").touch()
1987 rootpath, inipath, inicfg, _ = determine_setup(
1988 inifile=None,
1989 override_ini=None,
1990 args=[str(a)],
1991 rootdir_cmd_arg=None,
1992 invocation_dir=Path.cwd(),
1993 )
1994 assert rootpath == tmp_path
1995 assert inipath is None
1996 assert inicfg == {}
1997
1998 def test_nothing(self, tmp_path: Path, monkeypatch: MonkeyPatch) -> None:
1999 monkeypatch.chdir(tmp_path)

Callers

nothing calls this directly

Calls 2

determine_setupFunction · 0.90
mkdirMethod · 0.45

Tested by

no test coverage detected