Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ in_tmpdir
Function
in_tmpdir
tests/conftest.py:39–42 ·
view source on GitHub ↗
(tempdir_factory)
Source
from the content-addressed store, hash-verified
37
38
@pytest.fixture
39
def
in_tmpdir(tempdir_factory):
40
path = tempdir_factory.get()
41
with
cwd(path):
42
yield
path
43
44
45
@pytest.fixture
Callers
nothing calls this directly
Calls
2
cwd
Function · 0.90
get
Method · 0.45
Tested by
no test coverage detected