@@ -72,7 +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 len (red_result .classifications ) > 0 , "No classifications for red image"
75+ assert (
76+ len (red_result .classifications ) > 0
77+ ), "No classifications for red image"
7678
7779 # Test green channel image
7880 green_image_bytes = create_color_channel_image ("green" )
@@ -82,7 +84,8 @@ async def test_classify_color_channels(
8284
8385 if green_result .error .code :
8486 msg = (
85- f"Green image classification error: { green_result .error .message } "
87+ "Green image classification error: "
88+ f"{ green_result .error .message } "
8689 )
8790 pytest .fail (msg )
8891
@@ -97,7 +100,10 @@ async def test_classify_color_channels(
97100 blue_result = await client .classify_single (blue_image_data )
98101
99102 if blue_result .error .code :
100- msg = f"Blue image classification error: { blue_result .error .message } "
103+ msg = (
104+ "Blue image classification error: "
105+ f"{ blue_result .error .message } "
106+ )
101107 pytest .fail (msg )
102108
103109 assert (
@@ -106,5 +112,9 @@ async def test_classify_color_channels(
106112
107113 # Verify all three images were successfully classified
108114 assert red_result .classifications , "Red image has no classifications"
109- assert green_result .classifications , "Green image has no classifications"
110- assert blue_result .classifications , "Blue 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"
0 commit comments