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

Class FakeConfig

testing/test_tmpdir.py:37–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36@dataclasses.dataclass
37class FakeConfig:
38 basetemp: str | Path
39
40 @property
41 def trace(self):
42 return self
43
44 def get(self, key):
45 return lambda *k: None
46
47 def getini(self, name):
48 if name == "tmp_path_retention_count":
49 return 3
50 elif name == "tmp_path_retention_policy":
51 return "all"
52 else:
53 assert False
54
55 @property
56 def option(self):
57 return self
58
59
60class TestTmpPathHandler:

Callers 2

test_mktempMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_mktempMethod · 0.56