mirror of
https://github.com/simple-login/app.git
synced 2024-09-20 15:05:59 +08:00
fix test
This commit is contained in:
parent
cb8b20fc9a
commit
aaccfc6f9d
|
@ -7,8 +7,8 @@ from tests.utils import login
|
|||
|
||||
|
||||
def test_create_random_alias_success(flask_client):
|
||||
login(flask_client)
|
||||
assert Alias.count() == 1
|
||||
user = login(flask_client)
|
||||
assert Alias.filter(Alias.user_id == user.id).count() == 1
|
||||
|
||||
r = flask_client.post(
|
||||
url_for("dashboard.index"),
|
||||
|
|
Loading…
Reference in a new issue