fix: webhook can fail for multiple reasons (#3921)

This commit is contained in:
Vlad Stan
2026-04-08 18:17:39 +03:00
committed by GitHub
parent 63cc89e2b6
commit 116f982aab
+6 -1
View File
@@ -252,7 +252,12 @@ async def test_notification_for_internal_payment(
assert _payment.bolt11 == payment.bolt11
assert _payment.amount == 123_000
updated_payment = await get_payment(_payment.checking_id)
assert updated_payment.webhook_status == "404"
assert (
updated_payment.webhook_status is not None
), "Webhook should have been called."
assert (
int(updated_payment.webhook_status) >= 400
), "Webhook should have been called and failed."
@pytest.mark.anyio