(pytester: Pytester)
| 26 | |
| 27 | |
| 28 | def 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 | |
| 48 | def test_none_help_param_raises_exception(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected