Describe the bug
Currently the tests for sending mails through Celery use a file called celery_mail_test_settings.toml to define the mail accounts to be used in the test. But the override_settings decorator doesn't seem to affect the email settings used my djcelery-email to send the mails. It still uses the settings from settings.py and if there are none, it fails due to an apparent lack of email settings. If there are email settings in settings.py the test succeeds, but it uses those settings instead of those
To Reproduce
Steps to reproduce the behavior:
Set up a Celery on your system
Create a celery_mail_test_settings.toml as described in README.md
Make sure there are no email settings in settings.py. If there are some, comment them out
Start a Celery instance with make celery-run
Run the tests with make test
See an assertion error from the run tests and a ConnectionRefused exception in Celery
Expected behavior
The tests should succeed
Additional context
I hope this bug while at the latest be fixed once #11 gets resolved, but for now this bug should have a low priority due to it only affecting the tests. The actual feature of sending mails through Celery works.
Describe the bug Currently the tests for sending mails through Celery use a file called
celery_mail_test_settings.toml
to define the mail accounts to be used in the test. But theoverride_settings
decorator doesn't seem to affect the email settings used mydjcelery-email
to send the mails. It still uses the settings fromsettings.py
and if there are none, it fails due to an apparent lack of email settings. If there are email settings insettings.py
the test succeeds, but it uses those settings instead of thoseTo Reproduce Steps to reproduce the behavior:
celery_mail_test_settings.toml
as described inREADME.md
settings.py
. If there are some, comment them outmake celery-run
make test
ConnectionRefused
exception in CeleryExpected behavior The tests should succeed
Additional context I hope this bug while at the latest be fixed once #11 gets resolved, but for now this bug should have a low priority due to it only affecting the tests. The actual feature of sending mails through Celery works.