This commit is contained in:
Renaud Boyer 2020-12-06 17:46:10 +01:00
parent d88aeeab7f
commit 0f48121fd5

View file

@ -208,7 +208,7 @@ def test_add_alias_in_custom_domain_trash(flask_client):
# delete a custom-domain alias: alias should go the DomainDeletedAlias # delete a custom-domain alias: alias should go the DomainDeletedAlias
alias = Alias.create( alias = Alias.create(
user_id=user.id, user_id=user.id,
email=f"prefix@ab.cd", email="prefix@ab.cd",
custom_domain_id=custom_domain.id, custom_domain_id=custom_domain.id,
mailbox_id=user.default_mailbox_id, mailbox_id=user.default_mailbox_id,
commit=True, commit=True,
@ -219,7 +219,7 @@ def test_add_alias_in_custom_domain_trash(flask_client):
assert DomainDeletedAlias.query.count() == 1 assert DomainDeletedAlias.query.count() == 1
# create the same alias, should return error # create the same alias, should return error
suffix = f"@ab.cd" suffix = "@ab.cd"
signed_suffix = signer.sign(suffix).decode() signed_suffix = signer.sign(suffix).decode()
r = flask_client.post( r = flask_client.post(
url_for("dashboard.custom_alias"), url_for("dashboard.custom_alias"),