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

Method test_getoption

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

Source from the content-addressed store, hash-verified

587 config.getvalueorskip("hello")
588
589 def test_getoption(self, pytester: Pytester) -> None:
590 config = pytester.parseconfig()
591 with pytest.raises(ValueError):
592 config.getvalue("x")
593 assert config.getoption("x", 1) == 1
594
595 def test_getconftest_pathlist(self, pytester: Pytester, tmp_path: Path) -> None:
596 somepath = tmp_path.joinpath("x", "y", "z")

Callers

nothing calls this directly

Calls 3

parseconfigMethod · 0.45
getvalueMethod · 0.45
getoptionMethod · 0.45

Tested by

no test coverage detected