This commit is contained in:
Son NK 2020-02-10 23:30:04 +07:00
parent 2efe8cd160
commit 991a76dabd

View file

@ -7,14 +7,18 @@ from tests.utils import login
def test_add_alias_success(flask_client): def test_add_alias_success(flask_client):
login(flask_client) user = login(flask_client)
db.session.commit() db.session.commit()
word = random_word() word = random_word()
r = flask_client.post( r = flask_client.post(
url_for("dashboard.custom_alias"), url_for("dashboard.custom_alias"),
data={"prefix": "prefix", "suffix": f".{word}@{EMAIL_DOMAIN}"}, data={
"prefix": "prefix",
"suffix": f".{word}@{EMAIL_DOMAIN}",
"mailbox": user.email,
},
follow_redirects=True, follow_redirects=True,
) )