Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-django-seed"

Tue Sep 14 21:14:29 2021 rev:4 rq:918824 version:0.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-django-seed/python-django-seed.changes    
2020-02-20 14:59:34.246781398 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-seed.new.1899/python-django-seed.changes
  2021-09-14 21:14:43.988425259 +0200
@@ -1,0 +2,5 @@
+Tue Sep 14 06:22:59 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Switch to pytest-django from django-nose. 
+
+-------------------------------------------------------------------

New:
----
  settings.py

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

Other differences:
------------------
++++++ python-django-seed.spec ++++++
--- /var/tmp/diff_new_pack.99OO7n/_old  2021-09-14 21:14:44.584425844 +0200
+++ /var/tmp/diff_new_pack.99OO7n/_new  2021-09-14 21:14:44.588425848 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-seed
 #
-# 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
@@ -23,7 +23,8 @@
 Summary:        Django project fake data seeder
 License:        MIT
 URL:            https://github.com/brobin/django-seed
-Source:         
https://files.pythonhosted.org/packages/source/d/django-seed/django-seed-%{version}.tar.gz
+Source0:        
https://files.pythonhosted.org/packages/source/d/django-seed/django-seed-%{version}.tar.gz
+Source1:        settings.py
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -34,7 +35,8 @@
 BuildRequires:  %{python_module Django >= 1.11}
 BuildRequires:  %{python_module Faker >= 0.7.7}
 BuildRequires:  %{python_module coverage}
-BuildRequires:  %{python_module django-nose}
+BuildRequires:  %{python_module pytest-django}
+BuildRequires:  %{python_module pytest}
 # /SECTION
 %python_subpackages
 
@@ -44,6 +46,7 @@
 %prep
 %setup -q -n django-seed-%{version}
 sed -i 's/fake-factory/Faker/' setup.py
+cp %SOURCE1 django_seed
 
 %build
 %python_build
@@ -53,7 +56,8 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_exec setup.py test
+export DJANGO_SETTINGS_MODULE=django_seed.settings
+%pytest %{buildroot}%{$python_sitelib}/django_seed/tests.py
 
 %files %{python_files}
 %license LICENSE

++++++ settings.py ++++++
from faker import Faker
fake = Faker()

DATABASES={
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': ':memory:',
    }
}
INSTALLED_APPS=(
    'django_seed',
)
SECRET_KEY=fake.sha1()

Reply via email to