Skip to content

Commit 4a46549

Browse files
committed
Add failing test for worker management command
1 parent 01f3d64 commit 4a46549

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

django_dbq/tests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ def test_errors_raised_correctly(self):
5858
call_command('create_job', 'some_other_job', stdout=StringIO())
5959

6060

61+
@override_settings(JOBS={'testjob': {'tasks': ['a']}})
62+
class WorkerManagementCommandTestCase(TestCase):
63+
64+
def test_worker_no_args(self):
65+
call_command('worker', stdout=StringIO())
66+
67+
6168
@override_settings(JOBS={'testjob': {'tasks': ['a']}})
6269
class JobTestCase(TestCase):
6370

0 commit comments

Comments
 (0)