mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-02 22:58:12 +08:00
upping the coverage
This commit is contained in:
@@ -39,9 +39,12 @@ def test_cluster_initial(r):
|
||||
r.delete(list_key)
|
||||
c = Cluster(list_key=list_key)
|
||||
assert c.sentinel is None
|
||||
assert c.stat.status == Conf.STOPPED
|
||||
assert c.start() > 0
|
||||
assert c.sentinel.is_alive() is True
|
||||
assert c.is_running
|
||||
assert c.is_stopping is False
|
||||
assert c.is_starting is False
|
||||
stat = c.stat
|
||||
assert stat.status == Conf.IDLE
|
||||
assert c.stop() is True
|
||||
|
||||
@@ -59,3 +59,4 @@ def test_scheduler(r):
|
||||
)
|
||||
assert schedule is not None
|
||||
assert schedule.last_run() is None
|
||||
scheduler()
|
||||
|
||||
Reference in New Issue
Block a user