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

Class Config

testing/test_assertion.py:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20def mock_config(verbose=0):
21 class Config:
22 def getoption(self, name):
23 if name == "verbose":
24 return verbose
25 raise KeyError("Not mocked out: %s" % name)
26
27 return Config()
28

Callers 1

mock_configFunction · 0.70

Calls

no outgoing calls

Tested by 1

mock_configFunction · 0.56