Skip to content

Commit a881beb

Browse files
committed
Fix lint
1 parent 8eea614 commit a881beb

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

test_elasticsearch/test_async/test_server/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ async def async_client_factory(elasticsearch_url):
3636
# event loops (one per test!)
3737
client = None
3838
try:
39-
client = elasticsearch.AsyncElasticsearch(
40-
elasticsearch_url, ca_certs=CA_CERTS
41-
)
39+
client = elasticsearch.AsyncElasticsearch(elasticsearch_url, ca_certs=CA_CERTS)
4240
yield client
4341
finally:
4442
if client:

test_elasticsearch/test_server/test_rest_api_spec.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import json
2525
import os
2626
import re
27-
import sys
2827
import warnings
2928
import zipfile
3029
from typing import Tuple, Union
@@ -33,12 +32,10 @@
3332
import urllib3
3433
import yaml
3534

36-
from elasticsearch import ApiError, Elasticsearch, ElasticsearchWarning, RequestError
35+
from elasticsearch import ApiError, ElasticsearchWarning, RequestError
3736
from elasticsearch._sync.client.utils import _base64_auth_header
3837
from elasticsearch.compat import string_types
3938

40-
from ..utils import es_url
41-
4239
# some params had to be changed in python, keep track of them so we can rename
4340
# those in the tests accordingly
4441
PARAMS_RENAMES = {"from": "from_"}

test_elasticsearch/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
ConnectionError,
2727
Elasticsearch,
2828
NotFoundError,
29-
RequestError,
3029
)
3130

3231
SOURCE_DIR = Path(__file__).absolute().parent.parent

0 commit comments

Comments
 (0)