Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liustve committed Nov 22, 2024
1 parent 3c37ef7 commit 2231cec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contract-tests/tests/test/amazon/botocore/botocore_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,14 +929,14 @@ def _assert_semantic_conventions_attributes(
# self._assert_str_attribute(attributes_dict, SpanAttributes.PEER_SERVICE, "backend:8080")
for key, value in request_specific_attributes.items():
self._assert_attribute(attributes_dict, key, value)

for key, value in response_specific_attributes.items():
self._assert_attribute(attributes_dict, key, value)

def _assert_attribute(self, attributes_dict: Dict[str, AnyValue], key, value) -> None:
if isinstance(value, str):
if self._is_valid_regex(value):
self._assert_match_attribute(attributes_dict, key, value)
self._assert_match_attribute(attributes_dict, key, value)
else:
self._assert_str_attribute(attributes_dict, key, value)
elif isinstance(value, int):
Expand Down

0 comments on commit 2231cec

Please sign in to comment.