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

Method make_conftest_for_args

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

Source from the content-addressed store, hash-verified

665 pytest.raises(ValueError, config.getini, "other")
666
667 def make_conftest_for_args(self, pytester: Pytester) -> None:
668 pytester.makeconftest(
669 """
670 def pytest_addoption(parser):
671 parser.addini("args", "new args", type="args")
672 parser.addini("a2", "", "args", default="1 2 3".split())
673 """
674 )
675
676 def test_addini_args_ini_files(self, pytester: Pytester) -> None:
677 self.make_conftest_for_args(pytester)

Calls 1

makeconftestMethod · 0.45

Tested by

no test coverage detected