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

Function test_tmpdir_factory

testing/test_legacypath.py:59–65  ·  view source on GitHub ↗
(
    tmpdir_factory: TempdirFactory,
    tmp_path_factory: pytest.TempPathFactory,
)

Source from the content-addressed store, hash-verified

57
58
59def test_tmpdir_factory(
60 tmpdir_factory: TempdirFactory,
61 tmp_path_factory: pytest.TempPathFactory,
62) -> None:
63 assert str(tmpdir_factory.getbasetemp()) == str(tmp_path_factory.getbasetemp())
64 dir = tmpdir_factory.mktemp("foo")
65 assert dir.exists()
66
67
68def test_tmpdir_equals_tmp_path(tmpdir: LEGACY_PATH, tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 3

getbasetempMethod · 0.45
mktempMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected