Hello community,

here is the log from the commit of package python-django-debug-toolbar for 
openSUSE:Factory checked in at 2019-05-16 22:10:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-debug-toolbar (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-debug-toolbar.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-debug-toolbar"

Thu May 16 22:10:04 2019 rev:13 rq:703432 version:1.11

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-debug-toolbar/python-django-debug-toolbar.changes
  2019-04-30 13:01:13.806158931 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-debug-toolbar.new.5148/python-django-debug-toolbar.changes
        2019-05-16 22:10:07.266278606 +0200
@@ -1,0 +2,5 @@
+Thu May 16 11:18:44 UTC 2019 - Ondřej Súkup <[email protected]>
+
+- add t_integrations.patch to fix tests with django-2.2 
+
+-------------------------------------------------------------------

New:
----
  t_integrations.patch

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

Other differences:
------------------
++++++ python-django-debug-toolbar.spec ++++++
--- /var/tmp/diff_new_pack.J8en6J/_old  2019-05-16 22:10:08.530277522 +0200
+++ /var/tmp/diff_new_pack.J8en6J/_new  2019-05-16 22:10:08.534277518 +0200
@@ -24,6 +24,7 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/jazzband/django-debug-toolbar
 Source:         
https://github.com/jazzband/django-debug-toolbar/archive/%{version}.tar.gz
+Patch0:         t_integrations.patch
 BuildRequires:  %{python_module Django >= 1.11}
 BuildRequires:  %{python_module django-jinja}
 BuildRequires:  %{python_module html5lib}
@@ -59,6 +60,7 @@
 
 %prep
 %setup -q -n django-debug-toolbar-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ t_integrations.patch ++++++
>From 4288b191efc7c5b86fb6317cc291d66adcc61588 Mon Sep 17 00:00:00 2001
From: Matthias Kestenholz <[email protected]>
Date: Sun, 5 May 2019 11:51:51 +0200
Subject: [PATCH] Django 2.2's admin app checks for SessionMiddleware's
 presence

---
 tests/test_integration.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/test_integration.py b/tests/test_integration.py
index 129e819d..2e5d1c2d 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -354,6 +354,7 @@ class DebugToolbarSystemChecksTestCase(SimpleTestCase):
     @override_settings(
         MIDDLEWARE=[
             "django.contrib.messages.middleware.MessageMiddleware",
+            "django.contrib.sessions.middleware.SessionMiddleware",
             "django.contrib.auth.middleware.AuthenticationMiddleware",
             "django.middleware.gzip.GZipMiddleware",
             "debug_toolbar.middleware.DebugToolbarMiddleware",
@@ -366,6 +367,7 @@ def test_check_good_configuration(self):
     @override_settings(
         MIDDLEWARE=[
             "django.contrib.messages.middleware.MessageMiddleware",
+            "django.contrib.sessions.middleware.SessionMiddleware",
             "django.contrib.auth.middleware.AuthenticationMiddleware",
         ]
     )
@@ -387,6 +389,7 @@ def test_check_missing_middleware_error(self):
     @override_settings(
         MIDDLEWARE=[
             "django.contrib.messages.middleware.MessageMiddleware",
+            "django.contrib.sessions.middleware.SessionMiddleware",
             "django.contrib.auth.middleware.AuthenticationMiddleware",
             "debug_toolbar.middleware.DebugToolbarMiddleware",
             "django.middleware.gzip.GZipMiddleware",

Reply via email to