Skip to content

Commit 45c47b4

Browse files
committed
Fix formatting issues with ruff-pre-commit
1 parent bb028af commit 45c47b4

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

opentelemetry-api/tests/metrics/test_meter.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,18 @@ def test_create_counter_concurrent(self):
224224
def test_create_up_down_counter_concurrent(self):
225225
"""Test that Meter.create_up_down_counter can be called concurrently safely."""
226226
meter = NoOpMeter("name")
227-
self._run_concurrently(lambda: meter.create_up_down_counter("up_down_counter"))
227+
self._run_concurrently(
228+
lambda: meter.create_up_down_counter("up_down_counter")
229+
)
228230

229231
def test_create_observable_counter_concurrent(self):
230232
"""Test that Meter.create_observable_counter can be called concurrently safely."""
231233
meter = NoOpMeter("name")
232-
self._run_concurrently(lambda: meter.create_observable_counter("observable_counter", lambda options: []))
234+
self._run_concurrently(
235+
lambda: meter.create_observable_counter(
236+
"observable_counter", lambda options: []
237+
)
238+
)
233239

234240
def test_create_histogram_concurrent(self):
235241
"""Test that Meter.create_histogram can be called concurrently safely."""
@@ -244,9 +250,17 @@ def test_create_gauge_concurrent(self):
244250
def test_create_observable_gauge_concurrent(self):
245251
"""Test that Meter.create_observable_gauge can be called concurrently safely."""
246252
meter = NoOpMeter("name")
247-
self._run_concurrently(lambda: meter.create_observable_gauge("observable_gauge", lambda options: []))
253+
self._run_concurrently(
254+
lambda: meter.create_observable_gauge(
255+
"observable_gauge", lambda options: []
256+
)
257+
)
248258

249259
def test_create_observable_up_down_counter_concurrent(self):
250260
"""Test that Meter.create_observable_up_down_counter can be called concurrently safely."""
251261
meter = NoOpMeter("name")
252-
self._run_concurrently(lambda: meter.create_observable_up_down_counter("observable_up_down_counter", lambda options: []))
262+
self._run_concurrently(
263+
lambda: meter.create_observable_up_down_counter(
264+
"observable_up_down_counter", lambda options: []
265+
)
266+
)

0 commit comments

Comments
 (0)