[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-12-26 00:16:18 +00:00
parent 5d726faad0
commit afb204218e
1 changed files with 34 additions and 29 deletions

View File

@ -2650,7 +2650,8 @@ def test_summary_xfail_tb(pytester: Pytester) -> None:
""" """
) )
result = pytester.runpytest("-rx") result = pytester.runpytest("-rx")
result.stdout.fnmatch_lines([ result.stdout.fnmatch_lines(
[
"*= XFAILURES =*", "*= XFAILURES =*",
"*_ test_xfail _*", "*_ test_xfail _*",
"* @pytest.mark.xfail*", "* @pytest.mark.xfail*",
@ -2661,8 +2662,9 @@ def test_summary_xfail_tb(pytester: Pytester) -> None:
"test_summary_xfail_tb.py:6: AssertionError*", "test_summary_xfail_tb.py:6: AssertionError*",
"*= short test summary info =*", "*= short test summary info =*",
"XFAIL test_summary_xfail_tb.py::test_xfail", "XFAIL test_summary_xfail_tb.py::test_xfail",
"*= 1 xfailed in * =*" "*= 1 xfailed in * =*",
]) ]
)
def test_xfail_tb_line(pytester: Pytester) -> None: def test_xfail_tb_line(pytester: Pytester) -> None:
@ -2677,13 +2679,15 @@ def test_xfail_tb_line(pytester: Pytester) -> None:
""" """
) )
result = pytester.runpytest("-rx", "--tb=line") result = pytester.runpytest("-rx", "--tb=line")
result.stdout.fnmatch_lines([ result.stdout.fnmatch_lines(
[
"*= XFAILURES =*", "*= XFAILURES =*",
"*test_xfail_tb_line.py:6: assert 1 == 2", "*test_xfail_tb_line.py:6: assert 1 == 2",
"*= short test summary info =*", "*= short test summary info =*",
"XFAIL test_xfail_tb_line.py::test_xfail", "XFAIL test_xfail_tb_line.py::test_xfail",
"*= 1 xfailed in * =*" "*= 1 xfailed in * =*",
]) ]
)
def test_summary_xpass_reason(pytester: Pytester) -> None: def test_summary_xpass_reason(pytester: Pytester) -> None:
@ -2719,12 +2723,13 @@ def test_xpass_output(pytester: Pytester) -> None:
""" """
) )
result = pytester.runpytest("-rX") result = pytester.runpytest("-rX")
result.stdout.fnmatch_lines([ result.stdout.fnmatch_lines(
[
"*= XPASSES =*", "*= XPASSES =*",
"*_ test_pass _*", "*_ test_pass _*",
"*- Captured stdout call -*", "*- Captured stdout call -*",
"*= short test summary info =*", "*= short test summary info =*",
"XPASS test_xpass_output.py::test_pass*", "XPASS test_xpass_output.py::test_pass*",
"*= 1 xpassed in * =*" "*= 1 xpassed in * =*",
]) ]
)