From c72c7d7969334edb03073110ca174c7e6f18be2d Mon Sep 17 00:00:00 2001 From: Jonas Linter <{email_address}> Date: Mon, 1 Dec 2025 09:21:15 +0100 Subject: [PATCH] Fix integrity error by adding dummy payload_hash in webhook reprocessing test --- tests/test_webhook_duplicates.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_webhook_duplicates.py b/tests/test_webhook_duplicates.py index 99c5741..25625eb 100644 --- a/tests/test_webhook_duplicates.py +++ b/tests/test_webhook_duplicates.py @@ -313,9 +313,10 @@ class TestWebhookReprocessingNeverBlocksStartup: hotel_id="HOTEL123", payload_json={"data": {"invalid": "data"}}, # Missing required fields status=WebhookStatus.PROCESSING, - received_at=datetime.now(UTC), + created_at=datetime.now(UTC), + payload_hash="invalidhash" # Add a dummy payload_hash to avoid integrity error ) - session.add(stuck_webhook) + session.add(stuck_webhook) ## Cannot add the stuck webhook. Integrity Error payload_hash is missing await session.commit() # This should NOT raise an exception - it should log and continue