mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Confirm disabling all notifications (#1845)
This commit is contained in:
@@ -417,13 +417,13 @@ class UserSettingsNotificationsTest(SoupTest):
|
||||
|
||||
def test_disable_all_via_link(self):
|
||||
assert self.user.notifications_send
|
||||
self.client.get('/control/settings/notifications/off/{}/{}/'.format(self.user.pk, self.user.notifications_token))
|
||||
self.client.post('/control/settings/notifications/off/{}/{}/'.format(self.user.pk, self.user.notifications_token))
|
||||
self.user.refresh_from_db()
|
||||
assert not self.user.notifications_send
|
||||
|
||||
def test_disable_all_via_link_anonymous(self):
|
||||
self.client.logout()
|
||||
assert self.user.notifications_send
|
||||
self.client.get('/control/settings/notifications/off/{}/{}/'.format(self.user.pk, self.user.notifications_token))
|
||||
self.client.post('/control/settings/notifications/off/{}/{}/'.format(self.user.pk, self.user.notifications_token))
|
||||
self.user.refresh_from_db()
|
||||
assert not self.user.notifications_send
|
||||
|
||||
Reference in New Issue
Block a user