Skip to content

Commit

Permalink
updated test for otlp bytes
Browse files Browse the repository at this point in the history
Signed-off-by: wasup-yash <[email protected]>
  • Loading branch information
wasup-yash committed Aug 20, 2024
1 parent 621d8b2 commit 95de5e9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def test_encode_attributes_all_kinds(self):
"greet": ["hola", "bonjour"], # Sequence[str]
"data": [1, 2], # Sequence[int]
"data_granular": [1.4, 2.4], # Sequence[float]
"binary_data": b'x00\x01\x02' #bytes
}
)
self.assertEqual(
Expand Down Expand Up @@ -80,6 +81,10 @@ def test_encode_attributes_all_kinds(self):
)
),
),
PB2AnyValue(
key="binary_data",
value=PB2AnyValue(bytes_value=b'x00\x01\x02'),
),
],
)

Expand Down

0 comments on commit 95de5e9

Please sign in to comment.