MCPcopy
hub / github.com/pytest-dev/pytest / test_config_getvalueorskip_None

Method test_config_getvalueorskip_None

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

Source from the content-addressed store, hash-verified

818 assert verbose == config.option.verbose
819
820 def test_config_getvalueorskip_None(self, pytester: Pytester) -> None:
821 pytester.makeconftest(
822 """
823 def pytest_addoption(parser):
824 parser.addoption("--hello")
825 """
826 )
827 config = pytester.parseconfig()
828 with pytest.raises(pytest.skip.Exception):
829 config.getvalueorskip("hello")
830
831 def test_getconftest_pathlist(self, pytester: Pytester, tmp_path: Path) -> None:
832 somepath = tmp_path.joinpath("x", "y", "z")

Callers

nothing calls this directly

Calls 3

getvalueorskipMethod · 0.80
makeconftestMethod · 0.45
parseconfigMethod · 0.45

Tested by

no test coverage detected