Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-rq-scheduler for 
openSUSE:Factory checked in at 2026-02-06 19:10:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rq-scheduler (Old)
 and      /work/SRC/openSUSE:Factory/.python-rq-scheduler.new.1670 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-rq-scheduler"

Fri Feb  6 19:10:16 2026 rev:5 rq:1331656 version:0.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rq-scheduler/python-rq-scheduler.changes  
2025-01-20 17:15:21.780141964 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-rq-scheduler.new.1670/python-rq-scheduler.changes
        2026-02-06 19:16:50.196491717 +0100
@@ -1,0 +2,6 @@
+Fri Feb  6 08:52:39 UTC 2026 - Marius Grossu <[email protected]>
+
+- Added fix_test_callback.patch: to fix JobCallbackTestCase for modern RQ 
versions
+  (gh#rq/rq-scheduler#328)
+
+-------------------------------------------------------------------

New:
----
  fix_test_callback.patch

----------(New B)----------
  New:
- Added fix_test_callback.patch: to fix JobCallbackTestCase for modern RQ 
versions
  (gh#rq/rq-scheduler#328)
----------(New E)----------

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

Other differences:
------------------
++++++ python-rq-scheduler.spec ++++++
--- /var/tmp/diff_new_pack.ujnshG/_old  2026-02-06 19:16:50.804517442 +0100
+++ /var/tmp/diff_new_pack.ujnshG/_new  2026-02-06 19:16:50.808517611 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-rq-scheduler
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
 License:        MIT
 URL:            https://github.com/rq/rq-scheduler
 Source:         
https://github.com/rq/rq-scheduler/archive/refs/tags/v%{version}.tar.gz#/rq-scheduler-%{version}-gh.tar.gz
+# PATCH-FIX-UPSTREAM fix_test_callback.patch -- based on PR 328
+Patch0:         fix_test_callback.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}

++++++ fix_test_callback.patch ++++++
Index: rq-scheduler-0.14/tests/test_callbacks.py
===================================================================
--- rq-scheduler-0.14.orig/tests/test_callbacks.py
+++ rq-scheduler-0.14/tests/test_callbacks.py
@@ -108,7 +108,8 @@ class JobCallbackTestCase(RQTestCase):
         self.assertEqual(job._success_callback, UNEVALUATED)
         self.assertEqual(job.success_callback, None)
         # _success_callback becomes `None` after `job.success_callback` is 
called if there's no success callback
-        self.assertEqual(job._success_callback, None)
+        self.assertIsNotNone(job._success_callback)
+        self.assertEqual(job.success_callback, None)
 
         # job.success_callback is assigned properly
         job = Job.create(say_hello, on_success=print, connection=self.testconn)
@@ -127,7 +128,8 @@ class JobCallbackTestCase(RQTestCase):
         self.assertEqual(job._failure_callback, UNEVALUATED)
         self.assertEqual(job.failure_callback, None)
         # _failure_callback becomes `None` after `job.failure_callback` is 
called if there's no failure callback
-        self.assertEqual(job._failure_callback, None)
+        self.assertIsNotNone(job._failure_callback)
+        self.assertEqual(job.failure_callback, None)
 
         # job.failure_callback is assigned properly
         job = Job.create(say_hello, on_failure=print, connection=self.testconn)

Reply via email to