From 280aa8ccf4da2e34c59faf059485ccbcd5e57790 Mon Sep 17 00:00:00 2001 From: Pearson Daniels Date: Mon, 4 Nov 2024 15:21:19 -0800 Subject: [PATCH] [7.4.1.dev2] Update imports from elasticsearch -> elasticsearch7 --- elasticsearch7_dsl/connections.py | 2 +- tests/test_connections.py | 2 +- tests/test_integration/test_document.py | 2 +- tests/test_integration/test_search.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/elasticsearch7_dsl/connections.py b/elasticsearch7_dsl/connections.py index cdb490f3f..cf654db1c 100644 --- a/elasticsearch7_dsl/connections.py +++ b/elasticsearch7_dsl/connections.py @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -from elasticsearch import Elasticsearch, __version__ +from elasticsearch7 import Elasticsearch, __version__ from six import string_types from .serializer import serializer diff --git a/tests/test_connections.py b/tests/test_connections.py index 4426b466a..fcd2b233e 100644 --- a/tests/test_connections.py +++ b/tests/test_connections.py @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -from elasticsearch import Elasticsearch +from elasticsearch7 import Elasticsearch from pytest import raises from elasticsearch7_dsl import connections, serializer diff --git a/tests/test_integration/test_document.py b/tests/test_integration/test_document.py index ffe743fb3..b61e9a36d 100644 --- a/tests/test_integration/test_document.py +++ b/tests/test_integration/test_document.py @@ -20,7 +20,7 @@ from ipaddress import ip_address import pytest -from elasticsearch import ConflictError, NotFoundError +from elasticsearch7 import ConflictError, NotFoundError from pytest import raises from pytz import timezone diff --git a/tests/test_integration/test_search.py b/tests/test_integration/test_search.py index 710c299cf..474bfb658 100644 --- a/tests/test_integration/test_search.py +++ b/tests/test_integration/test_search.py @@ -20,7 +20,7 @@ import warnings -from elasticsearch import TransportError +from elasticsearch7 import TransportError from pytest import raises from elasticsearch7_dsl import Date, Document, Keyword, MultiSearch, Q, Search, Text