47 lines
1.4 KiB
Diff
47 lines
1.4 KiB
Diff
---
|
|
test_elasticsearch/test_connection.py | 2 +-
|
|
test_elasticsearch/test_helpers.py | 2 +-
|
|
test_elasticsearch/test_server/test_helpers.py | 2 +-
|
|
test_elasticsearch/test_transport.py | 2 +-
|
|
4 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
--- a/test_elasticsearch/test_connection.py
|
|
+++ b/test_elasticsearch/test_connection.py
|
|
@@ -2,7 +2,7 @@ import re
|
|
import ssl
|
|
import gzip
|
|
import io
|
|
-from mock import Mock, patch
|
|
+from unittest.mock import Mock, patch
|
|
import urllib3
|
|
import warnings
|
|
from requests.auth import AuthBase
|
|
--- a/test_elasticsearch/test_helpers.py
|
|
+++ b/test_elasticsearch/test_helpers.py
|
|
@@ -1,5 +1,5 @@
|
|
# -*- coding: utf-8 -*-
|
|
-import mock
|
|
+from unittest import mock
|
|
import time
|
|
import threading
|
|
from unittest import SkipTest
|
|
--- a/test_elasticsearch/test_server/test_helpers.py
|
|
+++ b/test_elasticsearch/test_server/test_helpers.py
|
|
@@ -1,4 +1,4 @@
|
|
-from mock import patch
|
|
+from unittest.mock import patch
|
|
|
|
from elasticsearch import helpers, TransportError
|
|
from elasticsearch.helpers import ScanError
|
|
--- a/test_elasticsearch/test_transport.py
|
|
+++ b/test_elasticsearch/test_transport.py
|
|
@@ -1,7 +1,7 @@
|
|
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
import time
|
|
-from mock import patch
|
|
+from unittest.mock import patch
|
|
|
|
from elasticsearch.transport import Transport, get_host_info
|
|
from elasticsearch.connection import Connection
|