Skip to content

Commit b98b45b

Browse files
committed
Fix lint
1 parent 740005d commit b98b45b

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

test_elasticsearch/test_client/test_deprecated_options.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from elasticsearch import Elasticsearch, JsonSerializer
2323

24-
2524
EXPECTED_SERIALIZERS = {
2625
"application/vnd.mapbox-vector-tile",
2726
"application/x-ndjson",
@@ -34,12 +33,12 @@
3433

3534
try:
3635
import pyarrow as pa
36+
3737
EXPECTED_SERIALIZERS.add("application/vnd.apache.arrow.stream")
3838
except ImportError:
3939
pa = None
4040

4141

42-
4342
def test_sniff_on_connection_fail():
4443
with warnings.catch_warnings(record=True) as w:
4544
client = Elasticsearch("http://localhost:9200", sniff_on_connection_fail=True)

test_elasticsearch/test_client/test_serializers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from elasticsearch import Elasticsearch
2121
from test_elasticsearch.test_cases import DummyTransportTestCase
2222

23-
2423
EXPECTED_SERIALIZERS = {
2524
"application/json",
2625
"text/*",
@@ -33,6 +32,7 @@
3332

3433
try:
3534
import pyarrow as pa
35+
3636
EXPECTED_SERIALIZERS.add("application/vnd.apache.arrow.stream")
3737
except ImportError:
3838
pa = None

test_elasticsearch/test_serializer.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
try:
2525
import pyarrow as pa
26+
2627
from elasticsearch.serializer import PyArrowSerializer
2728
except ImportError:
2829
pa = None
@@ -37,11 +38,7 @@
3738

3839
from elasticsearch import Elasticsearch
3940
from elasticsearch.exceptions import SerializationError
40-
from elasticsearch.serializer import (
41-
JSONSerializer,
42-
OrjsonSerializer,
43-
TextSerializer,
44-
)
41+
from elasticsearch.serializer import JSONSerializer, OrjsonSerializer, TextSerializer
4542

4643
requires_numpy_and_pandas = pytest.mark.skipif(
4744
np is None or pd is None, reason="Test requires numpy and pandas to be available"

0 commit comments

Comments
 (0)