ci(backend): added tests for user

This commit is contained in:
Stan Girard 2023-11-13 15:28:42 +01:00
parent 1e00f6929f
commit ec60d3dbff

View File

@ -7,7 +7,12 @@ def test_get_user_info(client, api_key):
# Assert that the response contains the expected fields # Assert that the response contains the expected fields
user_info = response.json() user_info = response.json()
print(user_info)
assert "email" in user_info assert "email" in user_info
assert "max_brain_size" in user_info assert "max_brain_size" in user_info
assert "current_brain_size" in user_info assert "current_brain_size" in user_info
assert "date" 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