This commit is contained in:
omri zaher 2025-09-19 13:23:44 +03:00
parent 160861a5fe
commit bb7ebe7e61

View file

@ -25,6 +25,7 @@ class TestLogin:
assert response.status_code == 200
json_response = response.json()
print("Response JSON:", json_response)
assert 'token' in json_response
assert isinstance(json_response['token'], str)
assert len(json_response['token']) > 0
@ -43,6 +44,7 @@ class TestLogin:
assert response.status_code in [400, 401, 404]
json_response = response.json()
print("Response JSON:", json_response)
assert 'error' in json_response
assert json_response['error'] == 'not-found'
assert 'reason' in json_response