fix test
This commit is contained in:
parent
2efe8cd160
commit
991a76dabd
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue