From 4c87e4ce68ce9e963a5c01fad262a007c336bc40 Mon Sep 17 00:00:00 2001 From: Son Date: Mon, 8 Nov 2021 12:57:03 +0100 Subject: [PATCH] improve test --- tests/api/test_import_export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/test_import_export.py b/tests/api/test_import_export.py index 31b2f505..54050a39 100644 --- a/tests/api/test_import_export.py +++ b/tests/api/test_import_export.py @@ -202,7 +202,7 @@ def test_import(flask_client): import_from_csv(batch_import, user, alias_data) - aliases = Alias.filter_by(user_id=user.id).all() + aliases = Alias.filter_by(user_id=user.id).order_by(Alias.id).all() assert len(aliases) == 3 # +2 # aliases[0] is the onboarding alias, skip it