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:
Jan Dittberner 2023-02-19 13:45:30 +01:00
parent d6fc29a2b8
commit 610f8976fc
5 changed files with 114 additions and 37 deletions

View file

@ -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