forked from pool/python-zeep
Accepting request 970095 from home:pgajdos:python
- do not require python-mock for build
- added patches
fix 1ddd118956
+ python-zeep-no-mock.patch
OBS-URL: https://build.opensuse.org/request/show/970095
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zeep?expand=0&rev=12
This commit is contained in:
39
python-zeep-no-mock.patch
Normal file
39
python-zeep-no-mock.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index dfa79a58..4cf9073b 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -27,7 +27,6 @@
|
||||
tests_require = [
|
||||
"coverage[toml]==5.2.1",
|
||||
"freezegun==0.3.15",
|
||||
- "mock==2.0.0",
|
||||
"pretend==1.0.9",
|
||||
"pytest-cov==2.8.1",
|
||||
"pytest-httpx",
|
||||
diff --git a/tests/conftest.py b/tests/conftest.py
|
||||
index 64c9bf95..4bd41de0 100644
|
||||
--- a/tests/conftest.py
|
||||
+++ b/tests/conftest.py
|
||||
@@ -2,10 +2,6 @@
|
||||
|
||||
import pytest
|
||||
|
||||
-# Don't try to test asyncio since it is py3 only syntax
|
||||
-if sys.version_info < (3, 5):
|
||||
- collect_ignore = ["test_asyncio_transport.py"]
|
||||
-
|
||||
pytest.register_assert_rewrite("tests.utils")
|
||||
|
||||
|
||||
diff --git a/tests/test_main.py b/tests/test_main.py
|
||||
index bffc7230..f4504820 100644
|
||||
--- a/tests/test_main.py
|
||||
+++ b/tests/test_main.py
|
||||
@@ -1,4 +1,5 @@
|
||||
-from mock import patch
|
||||
+from unittest.mock import patch
|
||||
+
|
||||
from pretend import stub
|
||||
|
||||
from zeep import __main__, client
|
||||
|
||||
Reference in New Issue
Block a user