(self, tmp_path: Path, monkeypatch: MonkeyPatch)
| 1321 | |
| 1322 | class TestRootdir: |
| 1323 | def test_simple_noini(self, tmp_path: Path, monkeypatch: MonkeyPatch) -> None: |
| 1324 | assert get_common_ancestor([tmp_path]) == tmp_path |
| 1325 | a = tmp_path / "a" |
| 1326 | a.mkdir() |
| 1327 | assert get_common_ancestor([a, tmp_path]) == tmp_path |
| 1328 | assert get_common_ancestor([tmp_path, a]) == tmp_path |
| 1329 | monkeypatch.chdir(tmp_path) |
| 1330 | assert get_common_ancestor([]) == tmp_path |
| 1331 | no_path = tmp_path / "does-not-exist" |
| 1332 | assert get_common_ancestor([no_path]) == tmp_path |
| 1333 | assert get_common_ancestor([no_path / "a"]) == tmp_path |
| 1334 | |
| 1335 | @pytest.mark.parametrize( |
| 1336 | "name, contents", |
nothing calls this directly
no test coverage detected