* Add support to use a permanent Token.
* Fix bug using BaseFacade
* Fix bug using old Facade instead of BaseFacade
* Add isort and Black as formatter
* Add static BaseFacade class to allow access to API class and BaseMain
options
* Remove support for Python 3.8.
* Add set of `raw_*` methods that do not process results.
* Migrated to Python 3.10, Python 2 is not supported anymore
* Resource class methods respect additional `**kwargs` and `extra_headers`
parameters and pass them on to the underlying `requests` methods
* Fix to support `http://` schema in the server url
* Add USE_DASHES option to automatically replace underscores ("_") with
dashes ("-")
* Allow `delete()` method to accept optional `payload`
* Fix BaseMain Login method
* Add base_main helper
* Add method to be able to support resource names with "-" in the name
* Support Login based on usernames or email keys
* Drop support for Python 2. Test on v3.8 and v3.9
* Remove dependency on unitest2
- Switch to autosetup and pyproject macros.
- Drop patch python-django-rest-framework-client-no-unittest2.patch, no longer
required.
- Refresh python-django-rest-framework-client-no-mock.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-rest-framework-client?expand=0&rev=8
14 lines
375 B
Diff
14 lines
375 B
Diff
Index: django-rest-framework-client-0.10.0/tests/api.py
|
|
===================================================================
|
|
--- django-rest-framework-client-0.10.0.orig/tests/api.py
|
|
+++ django-rest-framework-client-0.10.0/tests/api.py
|
|
@@ -2,7 +2,7 @@ import json
|
|
import sys
|
|
import unittest
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import requests
|
|
import requests_mock
|
|
|