Refactor logging messages in e2e workflow and test files for improved clarity

This commit is contained in:
omri zaher 2025-09-19 20:00:15 +03:00
parent 26ae280fe3
commit 63596b1fbd
3 changed files with 10 additions and 32 deletions

View file

@ -25,7 +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
@ -44,7 +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