diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2014-05-30 04:38:09 +0300 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2014-05-30 10:34:51 +0300 |
commit | 223672e2e80029cf6aa14b7cfb2f0d500464dfdf (patch) | |
tree | b98280a4842c4527219524cb99a446d9c4dbf5b2 /tests/test_job.py | |
parent | 4ba9ab3ad2ecdfb576c7b9f076b4a93a6cac263d (diff) | |
download | apscheduler-223672e2e80029cf6aa14b7cfb2f0d500464dfdf.tar.gz |
Tweaked the scheduler and job stores API and added the reschedule_job() method
Diffstat (limited to 'tests/test_job.py')
-rw-r--r-- | tests/test_job.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_job.py b/tests/test_job.py index dfc7bf6..250f665 100644 --- a/tests/test_job.py +++ b/tests/test_job.py @@ -72,11 +72,11 @@ class TestJob(object): def test_pending(self, job): """Tests that the "pending" property return True when _jobstore is a string, False otherwise.""" - assert not job.pending - - job._jobstore = 'test' assert job.pending + job._jobstore_alias = 'test' + assert not job.pending + def test_getstate(self, job): state = job.__getstate__() expected = dict(version=1, trigger=job.trigger, executor='default', func='tests.test_job:dummyfunc', |