From d8d9028d62469067e282ddb552904e07bff66fce Mon Sep 17 00:00:00 2001 From: maximeroucher Date: Thu, 2 Jul 2026 17:23:03 +0200 Subject: [PATCH] tests: updating tests --- tests/modules/cdr/test_cdr.py | 2 +- tests/modules/test_amap.py | 4 ++-- tests/modules/test_ph.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/modules/cdr/test_cdr.py b/tests/modules/cdr/test_cdr.py index c5f89d8272..370172c466 100644 --- a/tests/modules/cdr/test_cdr.py +++ b/tests/modules/cdr/test_cdr.py @@ -1997,7 +1997,7 @@ def test_create_curriculum_membership_user(client: TestClient): f"/cdr/users/{user.id!s}/curriculums/{curriculum.id!s}/", headers={"Authorization": f"Bearer {token_user}"}, ) - assert response.status_code == 201 + assert response.status_code == 204 def test_delete_curriculum_membership_wrong_user(client: TestClient): diff --git a/tests/modules/test_amap.py b/tests/modules/test_amap.py index cd0c237a94..6df3898bff 100644 --- a/tests/modules/test_amap.py +++ b/tests/modules/test_amap.py @@ -231,7 +231,7 @@ def test_add_product_to_delivery(client: TestClient) -> None: json={"products_ids": [product.id]}, headers={"Authorization": f"Bearer {token}"}, ) - assert response.status_code == 201 + assert response.status_code == 204 def test_remove_product_from_delivery(client: TestClient) -> None: @@ -250,7 +250,7 @@ def test_remove_product_from_delivery(client: TestClient) -> None: json={"products_ids": [product.id]}, headers={"Authorization": f"Bearer {token}"}, ) - assert response.status_code == 201 + assert response.status_code == 204 def test_get_orders_from_delivery(client: TestClient) -> None: diff --git a/tests/modules/test_ph.py b/tests/modules/test_ph.py index e54741c6e9..175b56545c 100644 --- a/tests/modules/test_ph.py +++ b/tests/modules/test_ph.py @@ -111,7 +111,7 @@ def test_create_paper_pdf_and_cover(client: TestClient) -> None: headers={"Authorization": f"Bearer {token_ph}"}, ) - assert response.status_code == 201 + assert response.status_code == 204 assert Path(f"data/ph/pdf/{paper.id}.pdf").is_file() assert Path(f"data/ph/cover/{paper.id}.jpg").is_file()