[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,19 +2650,21 @@ 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 =*", [
"*_ test_xfail _*", "*= XFAILURES =*",
"* @pytest.mark.xfail*", "*_ test_xfail _*",
"* def test_xfail():*", "* @pytest.mark.xfail*",
"* a, b = 1, 2*", "* def test_xfail():*",
"> *assert a == b*", "* a, b = 1, 2*",
"E *assert 1 == 2*", "> *assert a == b*",
"test_summary_xfail_tb.py:6: AssertionError*", "E *assert 1 == 2*",
"*= short test summary info =*", "test_summary_xfail_tb.py:6: AssertionError*",
"XFAIL test_summary_xfail_tb.py::test_xfail", "*= short test summary info =*",
"*= 1 xfailed in * =*" "XFAIL test_summary_xfail_tb.py::test_xfail",
]) "*= 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 =*", [
"*test_xfail_tb_line.py:6: assert 1 == 2", "*= XFAILURES =*",
"*= short test summary info =*", "*test_xfail_tb_line.py:6: assert 1 == 2",
"XFAIL test_xfail_tb_line.py::test_xfail", "*= short test summary info =*",
"*= 1 xfailed in * =*" "XFAIL test_xfail_tb_line.py::test_xfail",
]) "*= 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 =*", [
"*_ test_pass _*", "*= XPASSES =*",
"*- Captured stdout call -*", "*_ test_pass _*",
"*= short test summary info =*", "*- Captured stdout call -*",
"XPASS test_xpass_output.py::test_pass*", "*= short test summary info =*",
"*= 1 xpassed in * =*" "XPASS test_xpass_output.py::test_pass*",
]) "*= 1 xpassed in * =*",
]
)