Files
django-q2/django_q/tests/test_qworker.py
T
Ilan Steemers 90b5b0d6ab moved static methods to module functions
medic is now sentinel and runs in it's own process
sentinel shutdown procedure more stable
2015-06-18 14:10:48 +02:00

16 lines
300 B
Python

import sys, os
myPath = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, myPath + '/../')
import pytest
from django_q import Cluster
@pytest.fixture(scope='session')
def cluster():
return Cluster()
def test_worker(cluster):
assert len(cluster.stable) == cluster.stable_size