Hello community,

here is the log from the commit of package python-factory_boy for 
openSUSE:Factory checked in at 2019-04-19 18:37:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-factory_boy (Old)
 and      /work/SRC/openSUSE:Factory/.python-factory_boy.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-factory_boy"

Fri Apr 19 18:37:51 2019 rev:10 rq:695101 version:2.11.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-factory_boy/python-factory_boy.changes    
2018-10-25 08:14:26.668119717 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-factory_boy.new.5536/python-factory_boy.changes
  2019-04-19 18:37:54.643148716 +0200
@@ -1,0 +2,6 @@
+Wed Apr 17 10:14:58 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add patch to support django 2.2:
+  * django-2.2.patch
+
+-------------------------------------------------------------------

New:
----
  django-2.2.patch

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

Other differences:
------------------
++++++ python-factory_boy.spec ++++++
--- /var/tmp/diff_new_pack.Fn7zR2/_old  2019-04-19 18:37:55.319149574 +0200
+++ /var/tmp/diff_new_pack.Fn7zR2/_new  2019-04-19 18:37:55.319149574 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-factory_boy
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # 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:            http://github.com/rbarrois/factory_boy
 Source:         
https://github.com/FactoryBoy/factory_boy/archive/%{version}.tar.gz
 Patch0:         python37.patch
+Patch1:         django-2.2.patch
 BuildRequires:  %{python_module Django}
 BuildRequires:  %{python_module Faker >= 0.7.0}
 BuildRequires:  %{python_module Pillow}
@@ -45,6 +46,7 @@
 %prep
 %setup -q -n factory_boy-%{version}
 %patch0 -p1
+%patch1 -p1
 # needs running mongo
 rm tests/test_mongoengine.py
 sed -i -e '/test_mongoengine/d' tests/__init__.py

++++++ django-2.2.patch ++++++
>From a4c30d6529d3e613f5c2ac4cced7f985fda21041 Mon Sep 17 00:00:00 2001
From: Federico Bond <[email protected]>
Date: Tue, 2 Apr 2019 14:02:00 -0300
Subject: [PATCH] Fix test for Django 2.2

---
 tests/test_django.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test_django.py b/tests/test_django.py
index 9a7827c..32b0539 100644
--- a/tests/test_django.py
+++ b/tests/test_django.py
@@ -137,6 +137,8 @@ class Meta:
 
 
 class ModelTests(django_test.TestCase):
+    databases = {'default', 'replica'}
+
     def test_unset_model(self):
         class UnsetModelFactory(factory.django.DjangoModelFactory):
             pass

Reply via email to