Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-django-formtools for
openSUSE:Factory checked in at 2026-09-22 15:53:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-formtools (Old)
and /work/SRC/openSUSE:Factory/.python-django-formtools.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-formtools"
Tue Sep 22 15:53:48 2026 rev:14 rq:1379673 version:2.7
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django-formtools/python-django-formtools.changes
2026-07-14 13:49:37.850361539 +0200
+++
/work/SRC/openSUSE:Factory/.python-django-formtools.new.383539/python-django-formtools.changes
2026-09-22 15:55:26.954758395 +0200
@@ -1,0 +2,5 @@
+Tue Sep 22 12:38:03 UTC 2026 - Markéta Machová <[email protected]>
+
+- Add django61.patch to fix test failure with Django 6.1
+
+-------------------------------------------------------------------
New:
----
django61.patch
----------(New B)----------
New:
- Add django61.patch to fix test failure with Django 6.1
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-formtools.spec ++++++
--- /var/tmp/diff_new_pack.qWlyFo/_old 2026-09-22 15:55:27.619785791 +0200
+++ /var/tmp/diff_new_pack.qWlyFo/_new 2026-09-22 15:55:27.621785874 +0200
@@ -24,6 +24,8 @@
License: BSD-3-Clause
URL: https://github.com/jazzband/django-formtools
Source:
https://files.pythonhosted.org/packages/source/d/django-formtools/django_formtools-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM https://github.com/jazzband/django-formtools/pull/304 Fix
test_manipulated_cookie to work with Django 6.1's cookie signing
+Patch0: django61.patch
BuildRequires: %{python_module Django >= 5.2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
@@ -39,7 +41,7 @@
Currently for form previews and multi-step forms.
%prep
-%setup -q -n django_formtools-%{version}
+%autosetup -p1 -n django_formtools-%{version}
%build
%pyproject_wheel
++++++ django61.patch ++++++
>From 57ed6c092dd23890fbc074c88061f88533d8717c Mon Sep 17 00:00:00 2001
From: varun <[email protected]>
Date: Sat, 5 Sep 2026 02:28:50 +0530
Subject: [PATCH] Fix test_manipulated_cookie to work with Django 6.1's cookie
signing
---
tests/wizard/test_cookiestorage.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/tests/wizard/test_cookiestorage.py
b/tests/wizard/test_cookiestorage.py
index ba8d493..2467977 100644
--- a/tests/wizard/test_cookiestorage.py
+++ b/tests/wizard/test_cookiestorage.py
@@ -1,4 +1,3 @@
-from django.core import signing
from django.http import HttpResponse
from django.test import TestCase
@@ -15,11 +14,11 @@ def test_manipulated_cookie(self):
request = get_request()
storage = self.get_storage()('wizard1', request, None)
- cookie_signer = signing.get_cookie_signer(storage.prefix)
+ storage.data = {'key1': 'value1'}
+ response = HttpResponse()
+ storage.update_response(response)
- storage.request.COOKIES[storage.prefix] = cookie_signer.sign(
- storage.encoder.encode({'key1': 'value1'})
- )
+ storage.request.COOKIES[storage.prefix] =
response.cookies[storage.prefix].value
self.assertEqual(storage.load_data(), {'key1': 'value1'})