Skip to content

Commit 3cb8351

Browse files
committed
Fix lint
1 parent 0eb5099 commit 3cb8351

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

opentelemetry-sdk/tests/metrics/integration_test/test_explicit_bucket_histogram_aggregation.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,14 @@ def test_synchronous_delta_temporality(self):
7171
.resource_metrics[0]
7272
.scope_metrics[0]
7373
.metrics[0]
74-
.data.
75-
data_points[0]
74+
.data.data_points[0]
7675
)
7776

7877
previous_time_unix_nano = metric_data.time_unix_nano
7978

8079
self.assertEqual(
8180
metric_data.bucket_counts,
82-
(0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
81+
(0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
8382
)
8483

8584
self.assertLess(
@@ -109,8 +108,7 @@ def test_synchronous_delta_temporality(self):
109108
1 if internal_index == index + 2 else 0
110109
for internal_index in range(16)
111110
]
112-
)
113-
111+
),
114112
)
115113
self.assertLess(
116114
metric_data.start_time_unix_nano, metric_data.time_unix_nano
@@ -144,7 +142,9 @@ def test_synchronous_cumulative_temporality(self):
144142

145143
reader = InMemoryMetricReader(
146144
preferred_aggregation={Histogram: aggregation},
147-
preferred_temporality={Histogram: AggregationTemporality.CUMULATIVE},
145+
preferred_temporality={
146+
Histogram: AggregationTemporality.CUMULATIVE
147+
},
148148
)
149149

150150
provider = MeterProvider(metric_readers=[reader])
@@ -193,15 +193,17 @@ def test_synchronous_cumulative_temporality(self):
193193
metric_data.bucket_counts,
194194
tuple(
195195
[
196-
0 if internal_index < 1 or internal_index > index + 1 else 1
196+
0
197+
if internal_index < 1 or internal_index > index + 1
198+
else 1
197199
for internal_index in range(16)
198200
]
199-
)
201+
),
200202
)
201203
self.assertEqual(metric_data.min, self.test_values[0])
202204
self.assertEqual(metric_data.max, self.test_values[index])
203205
self.assertEqual(
204-
metric_data.sum, sum(self.test_values[:index + 1])
206+
metric_data.sum, sum(self.test_values[: index + 1])
205207
)
206208

207209
results = []
@@ -235,10 +237,8 @@ def test_synchronous_cumulative_temporality(self):
235237
)
236238
self.assertEqual(
237239
metric_data.bucket_counts,
238-
(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0)
240+
(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0),
239241
)
240242
self.assertEqual(metric_data.min, self.test_values[0])
241243
self.assertEqual(metric_data.max, self.test_values[-1])
242-
self.assertEqual(
243-
metric_data.sum, sum(self.test_values)
244-
)
244+
self.assertEqual(metric_data.sum, sum(self.test_values))

0 commit comments

Comments
 (0)