mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Email: Allow to override backend for custom SMTP connections (#2368)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user