diff --git a/tests/test_api_collections.py b/tests/test_api_collections.py index 6cb7b07..64fee9a 100644 --- a/tests/test_api_collections.py +++ b/tests/test_api_collections.py @@ -312,7 +312,7 @@ def test_post_collections_valid_page(client): assert response.status_code == 200 assert response.json["limit"] == 100 assert response.json["currentPage"] == 0 - assert response.json["totalPages"] == 0 + assert response.json["totalPages"] == 1 assert len(response.json["statistics"]) == 2 assert isinstance(response.json["statistics"][0]["views"], int) assert isinstance(response.json["statistics"][0]["downloads"], int) diff --git a/tests/test_api_communities.py b/tests/test_api_communities.py index b48b063..d704fe4 100644 --- a/tests/test_api_communities.py +++ b/tests/test_api_communities.py @@ -312,7 +312,7 @@ def test_post_communities_valid_page(client): assert response.status_code == 200 assert response.json["limit"] == 100 assert response.json["currentPage"] == 0 - assert response.json["totalPages"] == 0 + assert response.json["totalPages"] == 1 assert len(response.json["statistics"]) == 2 assert isinstance(response.json["statistics"][0]["views"], int) assert isinstance(response.json["statistics"][0]["downloads"], int) diff --git a/tests/test_api_items.py b/tests/test_api_items.py index bac322c..575f298 100644 --- a/tests/test_api_items.py +++ b/tests/test_api_items.py @@ -312,7 +312,7 @@ def test_post_items_valid_page(client): assert response.status_code == 200 assert response.json["limit"] == 100 assert response.json["currentPage"] == 0 - assert response.json["totalPages"] == 0 + assert response.json["totalPages"] == 1 assert len(response.json["statistics"]) == 2 assert isinstance(response.json["statistics"][0]["views"], int) assert isinstance(response.json["statistics"][0]["downloads"], int)