Email: Allow to override backend for custom SMTP connections (#2368)

This commit is contained in:
Maico Timmerman
2021-12-09 16:49:22 +01:00
committed by GitHub
parent bd22c2afc9
commit 033b8d70e7
10 changed files with 84 additions and 39 deletions

View File

@@ -501,8 +501,7 @@ class EventsTest(SoupTest):
def test_email_settings(self):
with mocker_context() as mocker:
mocked = mocker.patch('pretix.base.email.CustomSMTPBackend.test')
mocked = mocker.patch('pretix.control.views.event.test_custom_smtp_backend')
doc = self.get_doc('/control/event/%s/%s/settings/email' % (self.orga1.slug, self.event1.slug))
data = extract_form_fields(doc.select("form")[0])
data['test'] = '1'