Skip to content

Commit

Permalink
Test scenario for #123
Browse files Browse the repository at this point in the history
This commit itself will break test suite, so we can later address issue in #123.
This bug was introduced in #103 where django_dramatiq started benefitting from `AppConfig.ready()` functionality.
There was a research done in #100 explaining the underlying issue.
  • Loading branch information
amureki authored and Bogdanp committed Nov 5, 2022
1 parent 21ce8f2 commit f66c22c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/testapp1/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

class Testapp1Config(AppConfig):
name = "tests.testapp1"

def ready(self):
from . import tasks
2 changes: 2 additions & 0 deletions tests/testapp1/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Quite common use-case when you want to run tasks within models.py code
from tests.testapp1 import tasks

0 comments on commit f66c22c

Please sign in to comment.