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

Function test_help_via_addopts

testing/test_config.py:1705–1721  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1703
1704
1705def 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
1724def test_help_and_version_after_argument_error(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makeiniMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected