mirror of
https://github.com/wekan/wekan.git
synced 2026-01-20 00:06:09 +01:00
Refactor logging messages in e2e workflow and test files for improved clarity
This commit is contained in:
parent
26ae280fe3
commit
63596b1fbd
3 changed files with 10 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue