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

Method test_config_getoption_unicode

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

Source from the content-addressed store, hash-verified

560 pytest.raises(ValueError, config.getoption, "qweqwe")
561
562 def test_config_getoption_unicode(self, pytester: Pytester) -> None:
563 pytester.makeconftest(
564 """
565 def pytest_addoption(parser):
566 parser.addoption('--hello', type=str)
567 """
568 )
569 config = pytester.parseconfig("--hello=this")
570 assert config.getoption("hello") == "this"
571
572 def test_config_getvalueorskip(self, pytester: Pytester) -> None:
573 config = pytester.parseconfig()

Callers

nothing calls this directly

Calls 3

makeconftestMethod · 0.45
parseconfigMethod · 0.45
getoptionMethod · 0.45

Tested by

no test coverage detected