(
self, tmp_path: Path, pytest_ini: str, other: str
)
| 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" |
nothing calls this directly
no test coverage detected