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

Function tmp_path_factory

src/_pytest/tmpdir.py:183–186  ·  view source on GitHub ↗

Return a :class:`pytest.TempPathFactory` instance for the test session.

(request: FixtureRequest)

Source from the content-addressed store, hash-verified

181
182@fixture(scope="session")
183def tmp_path_factory(request: FixtureRequest) -> TempPathFactory:
184 """Return a :class:`pytest.TempPathFactory` instance for the test session."""
185 # Set dynamically by pytest_configure() above.
186 return request.config._tmp_path_factory # type: ignore
187
188
189def _mk_tmp(request: FixtureRequest, factory: TempPathFactory) -> Path:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected