Refactor managemails to use signals
- use signals to trigger Celery tasks to create and delete mailboxes - add generic TestCaseWithCeleryTasks class to handle celery task tests in a uniform way
This commit is contained in:
parent
d6fc29a2b8
commit
610f8976fc
5 changed files with 114 additions and 37 deletions
|
@ -15,3 +15,11 @@ class ManageMailsAppConfig(AppConfig):
|
|||
|
||||
name = "managemails"
|
||||
verbose_name = _("Mailboxes and Mail Addresses")
|
||||
|
||||
def ready(self):
|
||||
"""
|
||||
Takes care of importing the signal handlers of the :py:mod:`userdbs`
|
||||
app.
|
||||
|
||||
"""
|
||||
import managemails.signals # NOQA
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue