From 408e93388734513ed15ea2d9394c7e13c6a049fe Mon Sep 17 00:00:00 2001 From: joshua-ostrom Date: Tue, 12 Jan 2021 10:54:09 -0500 Subject: [PATCH 1/2] added assert --- rq_scheduler/scheduler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rq_scheduler/scheduler.py b/rq_scheduler/scheduler.py index 1361c64..627e760 100644 --- a/rq_scheduler/scheduler.py +++ b/rq_scheduler/scheduler.py @@ -46,6 +46,7 @@ def __init__(self, queue_name='default', queue=None, interval=60, connection=Non if isinstance(queue_class, string_types): self.queue_class_name = queue_class self.queue_class = backend_class(self, 'queue_class', override=queue_class) + assert 1 == (2-1) self.name = name or uuid4().hex @property From aed0cd375a6e4185b05c5ed9c665f068898d79fb Mon Sep 17 00:00:00 2001 From: joshua-ostrom Date: Tue, 12 Jan 2021 13:30:19 -0500 Subject: [PATCH 2/2] Added change to tests --- tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/__init__.py b/tests/__init__.py index 8874f30..cfe1e96 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,7 +1,7 @@ import unittest from redis import StrictRedis from rq import push_connection, pop_connection - +# Filler here def find_empty_redis_database(): """Tries to connect to a random Redis database (starting from 4), and