Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-rest-knox for 
openSUSE:Factory checked in at 2021-09-14 21:14:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-rest-knox (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-rest-knox.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-rest-knox"

Tue Sep 14 21:14:20 2021 rev:6 rq:918792 version:4.1.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-rest-knox/python-django-rest-knox.changes
  2020-04-28 22:32:25.973760757 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-rest-knox.new.1899/python-django-rest-knox.changes
        2021-09-14 21:14:27.600409173 +0200
@@ -1,0 +2,6 @@
+Tue Sep 14 01:26:23 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch remove-django-nose.patch:
+  * Use pytest-django to run the tests, rather than django-nose. 
+
+-------------------------------------------------------------------

New:
----
  remove-django-nose.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-django-rest-knox.spec ++++++
--- /var/tmp/diff_new_pack.wwsbzV/_old  2021-09-14 21:14:28.260409821 +0200
+++ /var/tmp/diff_new_pack.wwsbzV/_new  2021-09-14 21:14:28.264409825 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-rest-knox
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,7 @@
 URL:            https://github.com/James1345/django-rest-knox
 Source:         
https://github.com/James1345/django-rest-knox/archive/%{version}.tar.gz#/django-rest-knox-%{version}.tar.gz
 Patch0:         django3.patch
+Patch1:         remove-django-nose.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -36,9 +37,10 @@
 # SECTION test requirements
 BuildRequires:  %{python_module Django}
 BuildRequires:  %{python_module cryptography}
-BuildRequires:  %{python_module django-nose}
 BuildRequires:  %{python_module djangorestframework}
 BuildRequires:  %{python_module freezegun}
+BuildRequires:  %{python_module pytest-django}
+BuildRequires:  %{python_module pytest}
 # /SECTION
 %python_subpackages
 
@@ -46,8 +48,7 @@
 Authentication for Django REST framework.
 
 %prep
-%setup -q -n django-rest-knox-%{version}
-%patch0 -p1
+%autosetup -p1 -n django-rest-knox-%{version}
 # knox does not use pyOpenSSL; it uses cryptography.
 # pyOpenSSL is a proxy for cryptography in 3.6.0,
 # and replaced by cryptography in 4.0.0
@@ -62,7 +63,7 @@
 
 %check
 export DJANGO_SETTINGS_MODULE=knox_project.settings
-%python_expand $python manage.py test -v 2
+%pytest tests/tests.py
 
 %files %{python_files}
 %doc CHANGELOG.md README.md

++++++ remove-django-nose.patch ++++++
Index: django-rest-knox-4.1.0/knox_project/settings.py
===================================================================
--- django-rest-knox-4.1.0.orig/knox_project/settings.py
+++ django-rest-knox-4.1.0/knox_project/settings.py
@@ -10,7 +10,6 @@ INSTALLED_APPS = (
     'django.contrib.sessions',
     'rest_framework',
     'knox',
-    'django_nose',
 )
 
 MIDDLEWARE_CLASSES = (
@@ -56,4 +55,3 @@ USE_TZ = True
 
 STATIC_URL = '/static/'
 
-TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'

Reply via email to