- to not require python-mock for build - added patches fix https://github.com/dkarchmer/django-rest-framework-client/issues/7 + python-django-rest-framework-client-no-mock.patch OBS-URL: https://build.opensuse.org/request/show/976571 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-rest-framework-client?expand=0&rev=6
23 lines
882 B
Diff
23 lines
882 B
Diff
diff -upr django-rest-framework-client-0.1.1.orig/tests/api.py django-rest-framework-client-0.1.1/tests/api.py
|
|
--- django-rest-framework-client-0.1.1.orig/tests/api.py 2022-05-12 09:32:27.295052321 +0200
|
|
+++ django-rest-framework-client-0.1.1/tests/api.py 2022-05-12 09:32:27.299052347 +0200
|
|
@@ -1,6 +1,6 @@
|
|
import sys
|
|
import json
|
|
-import mock
|
|
+from unittest import mock
|
|
import requests
|
|
import requests_mock
|
|
import unittest
|
|
diff -upr django-rest-framework-client-0.1.1.orig/tests/resources.py django-rest-framework-client-0.1.1/tests/resources.py
|
|
--- django-rest-framework-client-0.1.1.orig/tests/resources.py 2022-05-12 09:32:27.295052321 +0200
|
|
+++ django-rest-framework-client-0.1.1/tests/resources.py 2022-05-12 09:32:27.299052347 +0200
|
|
@@ -1,6 +1,6 @@
|
|
import sys
|
|
import json
|
|
-import mock
|
|
+from unittest import mock
|
|
import requests
|
|
import requests_mock
|
|
import unittest
|