From ec60d3dbffb5fd9c28c452741dab714c8dcadf0d Mon Sep 17 00:00:00 2001 From: Stan Girard Date: Mon, 13 Nov 2023 15:28:42 +0100 Subject: [PATCH] ci(backend): added tests for user --- backend/tests/test_user.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/tests/test_user.py b/backend/tests/test_user.py index 85b82f5e4..290c20be0 100644 --- a/backend/tests/test_user.py +++ b/backend/tests/test_user.py @@ -7,7 +7,12 @@ def test_get_user_info(client, api_key): # Assert that the response contains the expected fields user_info = response.json() + print(user_info) assert "email" in user_info assert "max_brain_size" in user_info assert "current_brain_size" in user_info assert "date" in user_info + assert "is_premium" in user_info + assert "models" in user_info + assert "requests_stats" in user_info + assert "id" in user_info