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

Function test_keyword_option_wrong_arguments

testing/test_mark.py:376–387  ·  view source on GitHub ↗
(
    expr: str, expected_error: str, pytester: Pytester, capsys
)

Source from the content-addressed store, hash-verified

374 ],
375)
376def test_keyword_option_wrong_arguments(
377 expr: str, expected_error: str, pytester: Pytester, capsys
378) -> None:
379 pytester.makepyfile(
380 """
381 def test_func(arg):
382 pass
383 """
384 )
385 pytester.inline_run("-k", expr)
386 err = capsys.readouterr().err
387 assert expected_error in err
388
389
390def test_parametrized_collected_from_command_line(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

makepyfileMethod · 0.45
inline_runMethod · 0.45
readouterrMethod · 0.45

Tested by

no test coverage detected