Skip to content

Commit fc8f9c1

Browse files
chore: ruff
1 parent b0ece7c commit fc8f9c1

1 file changed

Lines changed: 14 additions & 17 deletions

File tree

tests/functional/test_color_channels.py

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ async def test_classify_color_channels(
7272
msg = f"Red image classification error: {red_result.error.message}"
7373
pytest.fail(msg)
7474

75-
assert (
76-
len(red_result.classifications) > 0
77-
), "No classifications for red image"
75+
assert len(red_result.classifications) > 0, (
76+
"No classifications for red image"
77+
)
7878

7979
# Test green channel image
8080
green_image_bytes = create_color_channel_image("green")
@@ -89,9 +89,9 @@ async def test_classify_color_channels(
8989
)
9090
pytest.fail(msg)
9191

92-
assert (
93-
len(green_result.classifications) > 0
94-
), "No classifications for green image"
92+
assert len(green_result.classifications) > 0, (
93+
"No classifications for green image"
94+
)
9595

9696
# Test blue channel image
9797
blue_image_bytes = create_color_channel_image("blue")
@@ -101,20 +101,17 @@ async def test_classify_color_channels(
101101

102102
if blue_result.error.code:
103103
msg = (
104-
"Blue image classification error: "
105-
f"{blue_result.error.message}"
104+
f"Blue image classification error: {blue_result.error.message}"
106105
)
107106
pytest.fail(msg)
108107

109-
assert (
110-
len(blue_result.classifications) > 0
111-
), "No classifications for blue image"
108+
assert len(blue_result.classifications) > 0, (
109+
"No classifications for blue image"
110+
)
112111

113112
# Verify all three images were successfully classified
114113
assert red_result.classifications, "Red image has no classifications"
115-
assert (
116-
green_result.classifications
117-
), "Green image has no classifications"
118-
assert (
119-
blue_result.classifications
120-
), "Blue image has no classifications"
114+
assert green_result.classifications, (
115+
"Green image has no classifications"
116+
)
117+
assert blue_result.classifications, "Blue image has no classifications"

0 commit comments

Comments
 (0)