mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
fix test
This commit is contained in:
parent
2efe8cd160
commit
991a76dabd
1 changed files with 6 additions and 2 deletions
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue