diff --git a/tests/tasks/test_tasks.py b/tests/tasks/test_tasks.py index 894225c739..d0aca095e9 100644 --- a/tests/tasks/test_tasks.py +++ b/tests/tasks/test_tasks.py @@ -248,3 +248,8 @@ class TaskTestCase(SimpleTestCase): import_string(test_tasks.noop_task_async.module_path), test_tasks.noop_task_async, ) + + @override_settings(TASKS={}) + def test_no_backends(self): + with self.assertRaises(InvalidTaskBackendError): + test_tasks.noop_task.enqueue()