We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54c0cbb commit 80f22bcCopy full SHA for 80f22bc
tests/tests/test_tasks.py
@@ -245,3 +245,8 @@ def test_module_path(self) -> None:
245
import_string(test_tasks.noop_task_async.module_path),
246
test_tasks.noop_task_async,
247
)
248
+
249
+ @override_settings(TASKS={})
250
+ def test_no_backends(self) -> None:
251
+ with self.assertRaises(InvalidTaskBackendError):
252
+ test_tasks.noop_task.enqueue()
0 commit comments