From aaccfc6f9d6ca380c613bfa3f59da1046e024be8 Mon Sep 17 00:00:00 2001 From: Son Date: Mon, 18 Apr 2022 10:18:51 +0200 Subject: [PATCH] fix test --- tests/dashboard/test_index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dashboard/test_index.py b/tests/dashboard/test_index.py index 0c25e73f..b44de15f 100644 --- a/tests/dashboard/test_index.py +++ b/tests/dashboard/test_index.py @@ -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"),