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

Method test_config_getvalueorskip_None

testing/test_config.py:578–587  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

576 assert verbose == config.option.verbose
577
578 def test_config_getvalueorskip_None(self, pytester: Pytester) -> None:
579 pytester.makeconftest(
580 """
581 def pytest_addoption(parser):
582 parser.addoption("--hello")
583 """
584 )
585 config = pytester.parseconfig()
586 with pytest.raises(pytest.skip.Exception):
587 config.getvalueorskip("hello")
588
589 def test_getoption(self, pytester: Pytester) -> None:
590 config = pytester.parseconfig()

Callers

nothing calls this directly

Calls 3

getvalueorskipMethod · 0.80
makeconftestMethod · 0.45
parseconfigMethod · 0.45

Tested by

no test coverage detected