mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-19 10:58:06 +08:00
* Add qmemory command * Update README, add test * Redesign qmemory * Add optional argument to show each worker's memory usage * Add --workers argument to test_qmemory
26 lines
531 B
Python
26 lines
531 B
Python
import pytest
|
|
from django.core.management import call_command
|
|
|
|
|
|
@pytest.mark.django_db
|
|
def test_qcluster():
|
|
call_command('qcluster', run_once=True)
|
|
|
|
|
|
@pytest.mark.django_db
|
|
def test_qmonitor():
|
|
call_command('qmonitor', run_once=True)
|
|
|
|
|
|
@pytest.mark.django_db
|
|
def test_qinfo():
|
|
call_command('qinfo')
|
|
call_command('qinfo', config=True)
|
|
call_command('qinfo', ids=True)
|
|
|
|
|
|
@pytest.mark.django_db
|
|
def test_qmemory():
|
|
call_command('qmemory', run_once=True)
|
|
call_command('qmemory', workers=True, run_once=True)
|