Skip to content

Commit f01b771

Browse files
committed
style: apply pre-commit fixes to 03-classification-api-test.py
- Apply black formatter: remove unnecessary parentheses - Fix end of file: remove extra blank line Signed-off-by: Yossi Ovadia <yovadia@redhat.com>
1 parent 0a6b24f commit f01b771

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

e2e-tests/03-classification-api-test.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ def test_intent_classification(self):
132132

133133
if not category_correct:
134134
if is_placeholder:
135-
failure_message = (
136-
f"Classification failed: returned placeholder 'general' instead of '{test_case['expected_category']}'"
137-
)
135+
failure_message = f"Classification failed: returned placeholder 'general' instead of '{test_case['expected_category']}'"
138136
else:
139137
failure_message = (
140138
f"Classification incorrect: expected '{test_case['expected_category']}', "
@@ -217,4 +215,3 @@ def test_batch_classification(self):
217215

218216
if __name__ == "__main__":
219217
unittest.main()
220-

0 commit comments

Comments
 (0)