mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-26 03:18:11 +08:00
medic is now sentinel and runs in it's own process sentinel shutdown procedure more stable
16 lines
300 B
Python
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
|