Skip to content

Commit 2f1fd3d

Browse files
committed
Fix tests
1 parent c3bc31f commit 2f1fd3d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

exporter/opentelemetry-exporter-otlp-proto-common/tests/test_metrics_encoder.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
from opentelemetry.exporter.otlp.proto.common._internal.metrics_encoder import (
1919
EncodingException,
20-
truncate_trailing_zeros,
2120
create_exponential_histogram_buckets,
21+
truncate_trailing_zeros,
2222
)
2323
from opentelemetry.exporter.otlp.proto.common.metrics_encoder import (
2424
encode_metrics,
@@ -864,8 +864,10 @@ def test_truncate_trailing_zeros(self):
864864
self.assertEqual([1, -1], truncate_trailing_zeros([1, -1, 0, 0]))
865865

866866
def test_create_histogram_buckets(self):
867-
self.assertIsNone([], create_exponential_histogram_buckets(0, [0, 0, 0, 0]))
868-
self.assertIsNotNone([], create_exponential_histogram_buckets(0, [1]))
867+
self.assertIsNone(
868+
create_exponential_histogram_buckets(0, [0, 0, 0, 0])
869+
)
870+
self.assertIsNotNone(create_exponential_histogram_buckets(0, [1]))
869871

870872
def test_encode_exponential_histogram(self):
871873
exponential_histogram = Metric(
@@ -883,7 +885,9 @@ def test_encode_exponential_histogram(self):
883885
scale=4,
884886
zero_count=5,
885887
positive=Buckets(offset=6, bucket_counts=[7, 8, 0]),
886-
negative=Buckets(offset=9, bucket_counts=[10, 11, 0, 0]),
888+
negative=Buckets(
889+
offset=9, bucket_counts=[10, 11, 0, 0]
890+
),
887891
flags=12,
888892
min=13.0,
889893
max=14.0,

0 commit comments

Comments
 (0)