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

Method getoption

testing/test_assertion.py:22–25  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

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 5

test_config_getoptionMethod · 0.45
test_getoptionMethod · 0.45
temporary_verbosityFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected