Skip to content

Commit

Permalink
Apply lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
zzhlogin committed Feb 13, 2024
1 parent 7603bc0 commit 18b9a4a
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,19 +388,28 @@ def test_remote_attributes_combinations(self):
# Validate behaviour of various combinations of DB attributes.
# Validate db.operation not exist, but db.statement exist, where SpanAttributes.DB_STATEMENT is valid
keys, values = self._mock_attribute(
[SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION], ["DB system", "SELECT DB statement", None], keys, values
[SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION],
["DB system", "SELECT DB statement", None],
keys,
values,
)
self._validate_expected_remote_attributes("DB system", "SELECT")

# Validate db.operation not exist, but db.statement exist, where SpanAttributes.DB_STATEMENT is invalid
keys, values = self._mock_attribute(
[SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION], ["DB system", "invalid DB statement", None], keys, values
[SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION],
["DB system", "invalid DB statement", None],
keys,
values,
)
self._validate_expected_remote_attributes("DB system", _UNKNOWN_REMOTE_OPERATION)

# Validate both db.operation and db.statement not exist.
keys, values = self._mock_attribute(
[SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION], ["DB system", None, None], keys, values
[SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION],
["DB system", None, None],
keys,
values,
)
self._validate_expected_remote_attributes("DB system", _UNKNOWN_REMOTE_OPERATION)

Expand Down

0 comments on commit 18b9a4a

Please sign in to comment.