From 991a76dabd7c3b3156b4cd226d6820f6bf64c207 Mon Sep 17 00:00:00 2001 From: Son NK Date: Mon, 10 Feb 2020 23:30:04 +0700 Subject: [PATCH] fix test --- tests/dashboard/test_custom_alias.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/dashboard/test_custom_alias.py b/tests/dashboard/test_custom_alias.py index cb3ad09f..fdfc8a60 100644 --- a/tests/dashboard/test_custom_alias.py +++ b/tests/dashboard/test_custom_alias.py @@ -7,14 +7,18 @@ from tests.utils import login def test_add_alias_success(flask_client): - login(flask_client) + user = login(flask_client) db.session.commit() word = random_word() r = flask_client.post( 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, )