Document the --code-highlight default (#9883)
Also normalized all help text using the patterns: * `One sentence help text` * `First sentence of help. Second sentence of help.`
This commit is contained in:
committed by
GitHub
parent
9a8f5dd73e
commit
e54c6a1362
@@ -2117,8 +2117,8 @@ class TestDebugOptions:
|
||||
result = pytester.runpytest("-h")
|
||||
result.stdout.fnmatch_lines(
|
||||
[
|
||||
"*store internal tracing debug information in this log*",
|
||||
"*This file is opened with 'w' and truncated as a result*",
|
||||
"*Defaults to 'pytestdebug.log'.",
|
||||
"*Store internal tracing debug information in this log*",
|
||||
"*file. This file is opened with 'w' and truncated as a*",
|
||||
"*Default: pytestdebug.log.",
|
||||
]
|
||||
)
|
||||
|
||||
@@ -30,11 +30,11 @@ def test_help(pytester: Pytester) -> None:
|
||||
assert result.ret == 0
|
||||
result.stdout.fnmatch_lines(
|
||||
"""
|
||||
-m MARKEXPR only run tests matching given mark expression.
|
||||
For example: -m 'mark1 and not mark2'.
|
||||
reporting:
|
||||
-m MARKEXPR Only run tests matching given mark expression. For
|
||||
example: -m 'mark1 and not mark2'.
|
||||
Reporting:
|
||||
--durations=N *
|
||||
-V, --version display pytest version and information about plugins.
|
||||
-V, --version Display pytest version and information about plugins.
|
||||
When given twice, also display information about
|
||||
plugins.
|
||||
*setup.cfg*
|
||||
@@ -71,9 +71,9 @@ def test_empty_help_param(pytester: Pytester) -> None:
|
||||
assert result.ret == 0
|
||||
lines = [
|
||||
" required_plugins (args):",
|
||||
" plugins that must be present for pytest to run*",
|
||||
" Plugins that must be present for pytest to run*",
|
||||
" test_ini (bool):*",
|
||||
"environment variables:",
|
||||
"Environment variables:",
|
||||
]
|
||||
result.stdout.fnmatch_lines(lines, consecutive=True)
|
||||
|
||||
|
||||
@@ -277,4 +277,4 @@ def test_stepwise_skip_is_independent(pytester: Pytester) -> None:
|
||||
|
||||
def test_sw_skip_help(pytester: Pytester) -> None:
|
||||
result = pytester.runpytest("-h")
|
||||
result.stdout.fnmatch_lines("*implicitly enables --stepwise.")
|
||||
result.stdout.fnmatch_lines("*Implicitly enables --stepwise.")
|
||||
|
||||
Reference in New Issue
Block a user