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

Function test_usage_error_code

testing/acceptance_test.py:1148–1150  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1146
1147
1148def test_usage_error_code(pytester: Pytester) -> None:
1149 result = pytester.runpytest("-unknown-option-")
1150 assert result.ret == ExitCode.USAGE_ERROR
1151
1152
1153@pytest.mark.filterwarnings("default::pytest.PytestUnhandledCoroutineWarning")

Callers

nothing calls this directly

Calls 1

runpytestMethod · 0.45

Tested by

no test coverage detected