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

Function mock_config

testing/test_assertion.py:20–27  ·  view source on GitHub ↗
(verbose=0)

Source from the content-addressed store, hash-verified

18
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
29
30class TestImportHookInstallation:

Callers 1

callopFunction · 0.85

Calls 1

ConfigClass · 0.70

Tested by

no test coverage detected