Skip to content

Commit e4dbb17

Browse files
committed
tests/test_results.py: reformat with black
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent 42b1eed commit e4dbb17

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_results.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class TestPatchtestResultDecorator:
99

1010
def test_pass_result_formatting(self):
1111
"""Test that PASS results are formatted correctly."""
12+
1213
@patchtest_result
1314
def dummy_test(patch):
1415
return "[PATCH] test", "PASS", None
@@ -19,6 +20,7 @@ def dummy_test(patch):
1920

2021
def test_fail_result_formatting(self):
2122
"""Test that FAIL results include reason."""
23+
2224
@patchtest_result
2325
def dummy_test(patch):
2426
return "[PATCH] test", "FAIL", "missing something"
@@ -29,6 +31,7 @@ def dummy_test(patch):
2931

3032
def test_skip_result_formatting(self):
3133
"""Test that SKIP results include reason."""
34+
3235
@patchtest_result
3336
def dummy_test(patch):
3437
return "[PATCH] test", "SKIP", "not applicable"
@@ -39,6 +42,7 @@ def dummy_test(patch):
3942

4043
def test_invalid_return_type_raises_error(self):
4144
"""Test that non-tuple return raises ValueError."""
45+
4246
@patchtest_result
4347
def dummy_test(patch):
4448
return "not a tuple"
@@ -48,6 +52,7 @@ def dummy_test(patch):
4852

4953
def test_wrong_tuple_length_raises_error(self):
5054
"""Test that wrong-length tuple raises ValueError."""
55+
5156
@patchtest_result
5257
def dummy_test(patch):
5358
return "[PATCH] test", "PASS" # Only 2 elements
@@ -57,6 +62,7 @@ def dummy_test(patch):
5762

5863
def test_invalid_result_value_raises_error(self):
5964
"""Test that invalid result value raises ValueError."""
65+
6066
@patchtest_result
6167
def dummy_test(patch):
6268
return "[PATCH] test", "INVALID", "reason"
@@ -66,6 +72,7 @@ def dummy_test(patch):
6672

6773
def test_function_name_preserved(self):
6874
"""Test that decorator preserves function name."""
75+
6976
@patchtest_result
7077
def my_custom_test(patch):
7178
return "[PATCH] test", "PASS", None
@@ -74,6 +81,7 @@ def my_custom_test(patch):
7481

7582
def test_docstring_preserved(self):
7683
"""Test that decorator preserves function docstring."""
84+
7785
@patchtest_result
7886
def documented_test(patch):
7987
"""This is a test docstring."""
@@ -83,6 +91,7 @@ def documented_test(patch):
8391

8492
def test_pass_with_none_reason(self):
8593
"""Test that PASS works correctly with None reason."""
94+
8695
@patchtest_result
8796
def dummy_test(patch):
8897
return "[PATCH] test", "PASS", None
@@ -92,6 +101,7 @@ def dummy_test(patch):
92101

93102
def test_fail_with_multiline_reason(self):
94103
"""Test that FAIL handles multiline reasons."""
104+
95105
@patchtest_result
96106
def dummy_test(patch):
97107
return "[PATCH] test", "FAIL", "line1\nline2"

0 commit comments

Comments
 (0)