Skip to content

Commit ba01c2e

Browse files
fix(tests): simplify assertions in test_operation_str_representation
1 parent 24a5f2e commit ba01c2e

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎tests/core/unit/telemetry/test_operation.py‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,8 @@ def test_dms_operations(self):
153153
def test_operation_str_representation(self):
154154
"""Test that Operation enum converts to string correctly."""
155155
assert str(Operation.AUDITLOG_LOG) == "log"
156-
assert (
157-
str(Operation.DATA_ANONYMIZATION_ANONYMIZE_TEXT)
158-
== "anonymize_text"
159-
)
156+
assert str(Operation.DATA_ANONYMIZATION_ANONYMIZE_TEXT) == "anonymize_text"
160157
assert str(Operation.DESTINATION_GET_INSTANCE_DESTINATION) == "get_instance_destination"
161-
str(Operation.DESTINATION_GET_INSTANCE_DESTINATION)
162-
== "get_instance_destination"
163-
)
164158
assert str(Operation.OBJECTSTORE_PUT_OBJECT) == "put_object"
165159
assert str(Operation.AICORE_AUTO_INSTRUMENT) == "auto_instrument"
166160

0 commit comments

Comments
 (0)