From 3837a9955e52c9f735c4ca013cadbc90a8426987 Mon Sep 17 00:00:00 2001 From: george Date: Thu, 3 Feb 2022 19:49:29 +0000 Subject: [PATCH] Just get the API key by user ID. --- tests/dashboard/test_api_keys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dashboard/test_api_keys.py b/tests/dashboard/test_api_keys.py index b3e6086c..4b21cb5e 100644 --- a/tests/dashboard/test_api_keys.py +++ b/tests/dashboard/test_api_keys.py @@ -16,7 +16,7 @@ def test_create_delete_api_key(flask_client): follow_redirects=True, ) assert create_r.status_code == 200 - api_key = ApiKey.get_by(user_id=user.id, name="for test") + api_key = ApiKey.get_by(user_id=user.id) assert ApiKey.count() == 1 assert api_key.name == "for test"