From 94ddbad34dd4b2835180f3da9804c58dd6861316 Mon Sep 17 00:00:00 2001 From: Alexis Feron Date: Mon, 26 May 2025 22:37:02 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_pins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_pins.py b/tests/test_pins.py index 5bbfbbd..674790b 100644 --- a/tests/test_pins.py +++ b/tests/test_pins.py @@ -87,7 +87,7 @@ def test_get_pin(token, user_id): assert data["description"] == "Test Description" assert data["location"] == [0,0] assert image_id in data["files"] - assert "date" not in data + assert data["date"] is None # Test avec date pin_id_with_date = create_test_pin(token, user_id, image_id, with_date=True) @@ -134,7 +134,7 @@ def test_update_pin(token, user_id): assert data["description"] == "Updated Description" assert data["location"] == [1,1] assert image_id in data["files"] - assert "date" not in data + assert data["date"] is None # Test mise à jour avec date response = client.patch(