Fix test failing after last commit

This commit is contained in:
Raphael Michel
2022-02-13 20:44:18 +01:00
parent a37ed6f001
commit 9966912799

View File

@@ -358,11 +358,11 @@ def test_change_email(env, client):
assert customer.email == 'john@example.org'
assert len(djmail.outbox) == 1
dumps({
token = dumps({
'customer': customer.pk,
'email': 'john@example.com'
}, 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
customer.refresh_from_db()
assert customer.email == 'john@example.com'