MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_tmpdir_factory

Function test_tmpdir_factory

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getbasetempMethod · 0.45
mktempMethod · 0.45

Tested by

no test coverage detected