Skip to content

Commit 041d841

Browse files
author
Alisson Claudino
committed
lint: isort import order and black formatting
1 parent c88e548 commit 041d841

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test_elasticsearch/test_otel.py

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

1818
import os
1919
from unittest import mock
20-
from elasticsearch import Elasticsearch
21-
from elasticsearch import helpers
20+
2221
import pytest
2322

23+
from elasticsearch import Elasticsearch, helpers
24+
2425
try:
2526
from opentelemetry.sdk.trace import TracerProvider, export
2627
from opentelemetry.sdk.trace.export.in_memory_span_exporter import (
@@ -111,8 +112,6 @@ def test_forward_otel_context_to_subthreads(
111112

112113
_call_bulk_mock.return_value = mock.Mock()
113114
actions = ({"x": i} for i in range(100))
114-
list(
115-
helpers.parallel_bulk(es_client, actions, chunk_size=4)
116-
)
115+
list(helpers.parallel_bulk(es_client, actions, chunk_size=4))
117116
# Ensures that the OTEL context has been forwarded to all chunks
118117
assert es_client._otel.recover_parent_context.call_count == 25

0 commit comments

Comments
 (0)