Matej Cepl
109d524d87
- do not require python-mock for build - added patches fix https://github.com/elastic/elasticsearch-py/issues/1983 + python-elasticsearch-no-mock.patch OBS-URL: https://build.opensuse.org/request/show/978711 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=25
44 lines
2.1 KiB
Diff
44 lines
2.1 KiB
Diff
diff -upr elasticsearch-py-7.6.0.orig/test_elasticsearch/test_connection.py elasticsearch-py-7.6.0/test_elasticsearch/test_connection.py
|
|
--- elasticsearch-py-7.6.0.orig/test_elasticsearch/test_connection.py 2022-05-23 13:53:49.850202688 +0200
|
|
+++ elasticsearch-py-7.6.0/test_elasticsearch/test_connection.py 2022-05-23 13:53:49.862202756 +0200
|
|
@@ -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
|
|
diff -upr elasticsearch-py-7.6.0.orig/test_elasticsearch/test_helpers.py elasticsearch-py-7.6.0/test_elasticsearch/test_helpers.py
|
|
--- elasticsearch-py-7.6.0.orig/test_elasticsearch/test_helpers.py 2022-05-23 13:53:49.846202666 +0200
|
|
+++ elasticsearch-py-7.6.0/test_elasticsearch/test_helpers.py 2022-05-23 13:53:49.862202756 +0200
|
|
@@ -1,5 +1,5 @@
|
|
# -*- coding: utf-8 -*-
|
|
-import mock
|
|
+from unittest import mock
|
|
import time
|
|
import threading
|
|
from unittest import SkipTest
|
|
diff -upr elasticsearch-py-7.6.0.orig/test_elasticsearch/test_server/test_helpers.py elasticsearch-py-7.6.0/test_elasticsearch/test_server/test_helpers.py
|
|
--- elasticsearch-py-7.6.0.orig/test_elasticsearch/test_server/test_helpers.py 2022-05-23 13:53:49.846202666 +0200
|
|
+++ elasticsearch-py-7.6.0/test_elasticsearch/test_server/test_helpers.py 2022-05-23 13:53:49.862202756 +0200
|
|
@@ -1,4 +1,4 @@
|
|
-from mock import patch
|
|
+from unittest.mock import patch
|
|
|
|
from elasticsearch import helpers, TransportError
|
|
from elasticsearch.helpers import ScanError
|
|
diff -upr elasticsearch-py-7.6.0.orig/test_elasticsearch/test_transport.py elasticsearch-py-7.6.0/test_elasticsearch/test_transport.py
|
|
--- elasticsearch-py-7.6.0.orig/test_elasticsearch/test_transport.py 2022-05-23 13:53:49.850202688 +0200
|
|
+++ elasticsearch-py-7.6.0/test_elasticsearch/test_transport.py 2022-05-23 13:53:49.862202756 +0200
|
|
@@ -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
|