Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
20
def
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_getoption
Method · 0.45
test_config_getoption_unicode
Method · 0.45
test_getoption
Method · 0.45
test_confcutdir_check_isdir
Method · 0.45
temporary_verbosity
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected