(pytester: Pytester)
| 1703 | |
| 1704 | |
| 1705 | def test_help_via_addopts(pytester: Pytester) -> None: |
| 1706 | pytester.makeini( |
| 1707 | """ |
| 1708 | [pytest] |
| 1709 | addopts = --unknown-option-should-allow-for-help --help |
| 1710 | """ |
| 1711 | ) |
| 1712 | result = pytester.runpytest() |
| 1713 | assert result.ret == 0 |
| 1714 | result.stdout.fnmatch_lines( |
| 1715 | [ |
| 1716 | "usage: *", |
| 1717 | "positional arguments:", |
| 1718 | # Displays full/default help. |
| 1719 | "to see available markers type: pytest --markers", |
| 1720 | ] |
| 1721 | ) |
| 1722 | |
| 1723 | |
| 1724 | def test_help_and_version_after_argument_error(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected