1 parent 0466160 commit 5bc627bCopy full SHA for 5bc627b
2 files changed
TODOs.md
@@ -42,4 +42,3 @@
42
- [ ] Readme
43
- [ ] Support for multiple databases
44
- [ ] Publish to PyPI
45
-- [ ] Automatically disable enqueue on commit for recurring tasks
tests/test_recurring_task.py
@@ -0,0 +1,15 @@
1
+from django.test import SimpleTestCase
2
+from django_tasks import task
3
+
4
+from steady_queue.recurring_task import configurations, recurring
5
6
7
+@recurring(schedule="*/1 * * * *", key="test_recurring_task")
8
+@task()
9
+def test_recurring_task():
10
+ pass
11
12
13
+class RecurringDecoratorTestCase(SimpleTestCase):
14
+ def test_decorator_registers_recurring_task(self):
15
+ self.assertIn("test_recurring_task", [c.key for c in configurations])
0 commit comments