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

Method test_pytestini_overrides_empty_other

testing/test_config.py:1964–1980  ·  view source on GitHub ↗
(
        self, tmp_path: Path, pytest_ini: str, other: str
    )

Source from the content-addressed store, hash-verified

1962 @pytest.mark.parametrize("pytest_ini", ["pytest.ini", ".pytest.ini"])
1963 @pytest.mark.parametrize("other", ["setup.cfg", "tox.ini"])
1964 def test_pytestini_overrides_empty_other(
1965 self, tmp_path: Path, pytest_ini: str, other: str
1966 ) -> None:
1967 inipath = tmp_path / pytest_ini
1968 inipath.touch()
1969 a = tmp_path / "a"
1970 a.mkdir()
1971 (a / other).touch()
1972 rootpath, parsed_inipath, *_ = determine_setup(
1973 inifile=None,
1974 override_ini=None,
1975 args=[str(a)],
1976 rootdir_cmd_arg=None,
1977 invocation_dir=Path.cwd(),
1978 )
1979 assert rootpath == tmp_path
1980 assert parsed_inipath == inipath
1981
1982 def test_setuppy_fallback(self, tmp_path: Path) -> None:
1983 a = tmp_path / "a"

Callers

nothing calls this directly

Calls 2

determine_setupFunction · 0.90
mkdirMethod · 0.45

Tested by

no test coverage detected