mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 09:32:22 +03:00
14 lines
511 B
Python
14 lines
511 B
Python
def test_get_user_info(client, api_key):
|
|
# Send a request to get user information
|
|
response = client.get("/user", headers={"Authorization": "Bearer " + api_key})
|
|
|
|
# Assert that the response status code is 200 (HTTP OK)
|
|
assert response.status_code == 200
|
|
|
|
# Assert that the response contains the expected fields
|
|
user_info = response.json()
|
|
assert "email" in user_info
|
|
assert "max_brain_size" in user_info
|
|
assert "current_brain_size" in user_info
|
|
assert "date" in user_info
|