[ruff] Fix all consider [*cats, garfield] instead of cats + [garfield]

This commit is contained in:
Pierre Sassoulas
2024-02-02 15:12:50 +01:00
parent 8967c527ff
commit 233ab89f13
14 changed files with 25 additions and 28 deletions

View File

@@ -417,8 +417,8 @@ class TestTerminal:
result = pytester.runpytest("-v")
result.stdout.fnmatch_lines(
common_output
+ [
[
*common_output,
"test_verbose_skip_reason.py::test_long_skip SKIPPED (1 cannot *...) *",
"test_verbose_skip_reason.py::test_long_xfail XFAIL (2 cannot *...) *",
]
@@ -426,17 +426,13 @@ class TestTerminal:
result = pytester.runpytest("-vv")
result.stdout.fnmatch_lines(
common_output
+ [
(
"test_verbose_skip_reason.py::test_long_skip SKIPPED"
" (1 cannot do foobar"
),
[
*common_output,
"test_verbose_skip_reason.py::test_long_skip SKIPPED"
" (1 cannot do foobar",
"because baz is missing due to I don't know what) *",
(
"test_verbose_skip_reason.py::test_long_xfail XFAIL"
" (2 cannot do foobar"
),
"test_verbose_skip_reason.py::test_long_xfail XFAIL"
" (2 cannot do foobar",
"because baz is missing due to I don't know what) *",
]
)