summaryrefslogtreecommitdiff
path: root/tests/test_job.py
diff options
context:
space:
mode:
authorTheofanis Despoudis <thdespou@hotmail.com>2018-05-27 09:27:56 +0100
committerSelwin Ong <selwin.ong@gmail.com>2018-05-27 15:27:56 +0700
commit875cc27c2fc64c173c090cdb0d90e967088c5458 (patch)
treee38e5461f17c2596c80f532b59cb3484ff9450f7 /tests/test_job.py
parentd6b12c2402f88023f5dbce215a87af6a53dcee28 (diff)
downloadrq-875cc27c2fc64c173c090cdb0d90e967088c5458.tar.gz
#908 Using a timeout string value for job works (#955)
Fixes https://github.com/rq/rq/issues/908
Diffstat (limited to 'tests/test_job.py')
-rw-r--r--tests/test_job.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_job.py b/tests/test_job.py
index 64ead19..63e4564 100644
--- a/tests/test_job.py
+++ b/tests/test_job.py
@@ -218,13 +218,14 @@ class TestJob(RQTestCase):
def test_store_then_fetch(self):
"""Store, then fetch."""
- job = Job.create(func=fixtures.some_calculation, args=(3, 4), kwargs=dict(z=2))
+ job = Job.create(func=fixtures.some_calculation, timeout='1h', args=(3, 4), kwargs=dict(z=2))
job.save()
job2 = Job.fetch(job.id)
self.assertEqual(job.func, job2.func)
self.assertEqual(job.args, job2.args)
self.assertEqual(job.kwargs, job2.kwargs)
+ self.assertEqual(job.timeout, job2.timeout)
# Mathematical equation
self.assertEqual(job, job2)