mirror of
https://github.com/wekan/wekan.git
synced 2026-02-20 06:58:07 +01:00
debug
This commit is contained in:
parent
160861a5fe
commit
bb7ebe7e61
1 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ class TestLogin:
|
||||||
|
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
json_response = response.json()
|
json_response = response.json()
|
||||||
|
print("Response JSON:", json_response)
|
||||||
assert 'token' in json_response
|
assert 'token' in json_response
|
||||||
assert isinstance(json_response['token'], str)
|
assert isinstance(json_response['token'], str)
|
||||||
assert len(json_response['token']) > 0
|
assert len(json_response['token']) > 0
|
||||||
|
|
@ -43,6 +44,7 @@ class TestLogin:
|
||||||
|
|
||||||
assert response.status_code in [400, 401, 404]
|
assert response.status_code in [400, 401, 404]
|
||||||
json_response = response.json()
|
json_response = response.json()
|
||||||
|
print("Response JSON:", json_response)
|
||||||
assert 'error' in json_response
|
assert 'error' in json_response
|
||||||
assert json_response['error'] == 'not-found'
|
assert json_response['error'] == 'not-found'
|
||||||
assert 'reason' in json_response
|
assert 'reason' in json_response
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue