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

Function test_help

testing/test_helpconfig.py:28–45  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

26
27
28def test_help(pytester: Pytester) -> None:
29 result = pytester.runpytest("--help")
30 assert result.ret == 0
31 result.stdout.fnmatch_lines(
32 """
33 -m MARKEXPR only run tests matching given mark expression.
34 For example: -m 'mark1 and not mark2'.
35 reporting:
36 --durations=N *
37 -V, --version display pytest version and information about plugins.
38 When given twice, also display information about
39 plugins.
40 *setup.cfg*
41 *minversion*
42 *to see*markers*pytest --markers*
43 *to see*fixtures*pytest --fixtures*
44 """
45 )
46
47
48def test_none_help_param_raises_exception(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 2

fnmatch_linesMethod · 0.80
runpytestMethod · 0.45

Tested by

no test coverage detected