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

Method path1

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

Source from the content-addressed store, hash-verified

86
87 @pytest.fixture(scope="session")
88 def path1(self, tmp_path_factory: TempPathFactory) -> Generator[Path, None, None]:
89 path = tmp_path_factory.mktemp("path")
90 self.setuptestfs(path)
91 yield path
92 assert path.joinpath("samplefile").exists()
93
94 def setuptestfs(self, path: Path) -> None:
95 # print "setting up test fs for", repr(path)

Callers

nothing calls this directly

Calls 2

setuptestfsMethod · 0.95
mktempMethod · 0.45

Tested by

no test coverage detected