From 7b39b3f7f6afd3b29e139a6b69cf630659aabca2 Mon Sep 17 00:00:00 2001 From: Samuel Paccoud - DINUM Date: Sat, 4 Jan 2025 23:50:36 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85(backend)=20improve=20test=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/backend/core/tests/documents/test_api_document_versions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/core/tests/documents/test_api_document_versions.py b/src/backend/core/tests/documents/test_api_document_versions.py index 83344259..cb727a1d 100644 --- a/src/backend/core/tests/documents/test_api_document_versions.py +++ b/src/backend/core/tests/documents/test_api_document_versions.py @@ -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