Skip to content

Commit 7e13ec1

Browse files
committed
fix: pre-commit
1 parent 516f74a commit 7e13ec1

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

tests/templates/kuttl/logging/test_log_aggregation.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def check_sent_events():
2323
},
2424
)
2525

26-
assert (
27-
response.status_code == 200
28-
), "Cannot access the API of the vector aggregator."
26+
assert response.status_code == 200, (
27+
"Cannot access the API of the vector aggregator."
28+
)
2929

3030
result = response.json()
3131

@@ -35,13 +35,13 @@ def check_sent_events():
3535
componentId = transform["componentId"]
3636

3737
if componentId == "filteredInvalidEvents":
38-
assert (
39-
sentEvents is None or sentEvents["sentEventsTotal"] == 0
40-
), "Invalid log events were sent."
38+
assert sentEvents is None or sentEvents["sentEventsTotal"] == 0, (
39+
"Invalid log events were sent."
40+
)
4141
else:
42-
assert (
43-
sentEvents is not None and sentEvents["sentEventsTotal"] > 0
44-
), f'No events were sent in "{componentId}".'
42+
assert sentEvents is not None and sentEvents["sentEventsTotal"] > 0, (
43+
f'No events were sent in "{componentId}".'
44+
)
4545

4646

4747
if __name__ == "__main__":

0 commit comments

Comments
 (0)