forked from pool/python-testfixtures
- Add appease-django-320.patch:
* Upstream patch to avoid a test failure with building with Django 3.2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=36
This commit is contained in:
19
appease-django-320.patch
Normal file
19
appease-django-320.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
From 52a14d92a122665b1a101e6398eca3982de01739 Mon Sep 17 00:00:00 2001
|
||||
From: Chris Withers <chris@simplistix.co.uk>
|
||||
Date: Sat, 10 Apr 2021 19:42:20 +0100
|
||||
Subject: [PATCH] appease Django 3.2
|
||||
|
||||
---
|
||||
testfixtures/tests/test_django/settings.py | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/testfixtures/tests/test_django/settings.py b/testfixtures/tests/test_django/settings.py
|
||||
index cf960d7..5173650 100644
|
||||
--- a/testfixtures/tests/test_django/settings.py
|
||||
+++ b/testfixtures/tests/test_django/settings.py
|
||||
@@ -6,3 +6,5 @@
|
||||
]
|
||||
|
||||
DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3'}}
|
||||
+
|
||||
+DEFAULT_AUTO_FIELD='django.db.models.AutoField'
|
||||
@@ -1,7 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 28 06:50:55 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
Wed Apr 28 07:49:55 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Skip a test that has some fundamental disagreements with Django 3.2.
|
||||
- Add appease-django-320.patch:
|
||||
* Upstream patch to avoid a test failure with building with Django 3.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 18 09:50:52 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
@@ -25,6 +25,8 @@ Summary: A collection of helpers and mock objects for unit tests and doc
|
||||
License: MIT
|
||||
URL: https://github.com/Simplistix/testfixtures
|
||||
Source: https://files.pythonhosted.org/packages/source/t/testfixtures/testfixtures-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM: gh#Simplistix/testfixtures/commit/52a14d92a122665b1a101e6398eca3982de01739
|
||||
Patch0: appease-django-320.patch
|
||||
BuildRequires: %{python_module Django}
|
||||
BuildRequires: %{python_module Twisted}
|
||||
BuildRequires: %{python_module pytest >= 3.6}
|
||||
@@ -57,6 +59,7 @@ their own library and give them some tests of their own!
|
||||
|
||||
%prep
|
||||
%setup -q -n testfixtures-%{version}
|
||||
%autopatch -p1
|
||||
chmod a-x docs/*.txt
|
||||
|
||||
%build
|
||||
@@ -70,8 +73,7 @@ chmod a-x docs/*.txt
|
||||
%check
|
||||
export DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings
|
||||
export PYTHONPATH=$(pwd)
|
||||
# gh#Simplistix/testfixtures#156
|
||||
%pytest testfixtures/tests -k 'not test_manage'
|
||||
%pytest testfixtures/tests
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
|
||||
Reference in New Issue
Block a user