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

Function test_cmdline_processargs_simple

testing/test_config.py:1130–1138  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1128
1129
1130def test_cmdline_processargs_simple(pytester: Pytester) -> None:
1131 pytester.makeconftest(
1132 """
1133 def pytest_cmdline_preparse(args):
1134 args.append("-h")
1135 """
1136 )
1137 result = pytester.runpytest()
1138 result.stdout.fnmatch_lines(["*pytest*", "*-h*"])
1139
1140
1141def test_invalid_options_show_extra_information(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makeconftestMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected