MCPcopy Index your code
hub / github.com/pytest-dev/pytest / make_conftest_for_args

Method make_conftest_for_args

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

Source from the content-addressed store, hash-verified

896 config.getini("other")
897
898 def make_conftest_for_args(self, pytester: Pytester) -> None:
899 pytester.makeconftest(
900 """
901 def pytest_addoption(parser):
902 parser.addini("args", "new args", type="args")
903 parser.addini("a2", "", "args", default="1 2 3".split())
904 """
905 )
906
907 def test_addini_args_ini_files(self, pytester: Pytester) -> None:
908 self.make_conftest_for_args(pytester)

Calls 1

makeconftestMethod · 0.45

Tested by

no test coverage detected