(self, tmp_path: Path)
| 59 | |
| 60 | class TestTmpPathHandler: |
| 61 | def test_mktemp(self, tmp_path: Path) -> None: |
| 62 | config = cast(Config, FakeConfig(tmp_path)) |
| 63 | t = TempPathFactory.from_config(config, _ispytest=True) |
| 64 | tmp = t.mktemp("world") |
| 65 | assert str(tmp.relative_to(t.getbasetemp())) == "world0" |
| 66 | tmp = t.mktemp("this") |
| 67 | assert str(tmp.relative_to(t.getbasetemp())).startswith("this") |
| 68 | tmp2 = t.mktemp("this") |
| 69 | assert str(tmp2.relative_to(t.getbasetemp())).startswith("this") |
| 70 | assert tmp2 != tmp |
| 71 | |
| 72 | def test_tmppath_relative_basetemp_absolute( |
| 73 | self, tmp_path: Path, monkeypatch: MonkeyPatch |
nothing calls this directly
no test coverage detected