✅(backend) improve test error
This test was missing the status code check. Without this check the error that follows does not make sense because the content returned is not at all what we expect in the following assert statement.
This commit is contained in:
committed by
Anthony LC
parent
0003f9d0de
commit
7b39b3f7f6
@@ -229,6 +229,8 @@ def test_api_document_versions_list_authenticated_related_pagination_parent(
|
||||
)
|
||||
|
||||
content = response.json()
|
||||
|
||||
assert response.status_code == 200
|
||||
assert content["is_truncated"] is False
|
||||
# The current version is not listed
|
||||
assert content["count"] == 3
|
||||
|
||||
Reference in New Issue
Block a user