forked from CGM_Public/pretix_original
Fix test failing after last commit
This commit is contained in:
@@ -358,11 +358,11 @@ def test_change_email(env, client):
|
|||||||
assert customer.email == 'john@example.org'
|
assert customer.email == 'john@example.org'
|
||||||
assert len(djmail.outbox) == 1
|
assert len(djmail.outbox) == 1
|
||||||
|
|
||||||
dumps({
|
token = dumps({
|
||||||
'customer': customer.pk,
|
'customer': customer.pk,
|
||||||
'email': 'john@example.com'
|
'email': 'john@example.com'
|
||||||
}, salt='pretix.presale.views.customer.ChangeInformationView')
|
}, salt='pretix.presale.views.customer.ChangeInformationView')
|
||||||
r = client.get('/bigevents/account/confirmchange?token={token}')
|
r = client.get(f'/bigevents/account/confirmchange?token={token}')
|
||||||
assert r.status_code == 302
|
assert r.status_code == 302
|
||||||
customer.refresh_from_db()
|
customer.refresh_from_db()
|
||||||
assert customer.email == 'john@example.com'
|
assert customer.email == 'john@example.com'
|
||||||
|
|||||||
Reference in New Issue
Block a user