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

Method path1

testing/test_pathlib.py:132–136  ·  view source on GitHub ↗
(self, tmp_path_factory: TempPathFactory)

Source from the content-addressed store, hash-verified

130
131 @pytest.fixture(scope="session")
132 def path1(self, tmp_path_factory: TempPathFactory) -> Generator[Path]:
133 path = tmp_path_factory.mktemp("path")
134 self.setuptestfs(path)
135 yield path
136 assert path.joinpath("samplefile").exists()
137
138 @pytest.fixture(autouse=True)
139 def preserve_sys(self):

Callers

nothing calls this directly

Calls 3

setuptestfsMethod · 0.95
mktempMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected