We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d7dfc commit 9d72a36Copy full SHA for 9d72a36
tests/test_webhooks.py
@@ -2,7 +2,6 @@
2
3
from __future__ import annotations
4
5
-import json
6
from typing import Any, Dict
7
from datetime import datetime, timezone
8
@@ -118,7 +117,7 @@ def test_verify_webhook_event_signature_string_body() -> None:
118
117
signature = create_webhook_signature(webhook.payload.model_dump(), timestamp, secret)
119
120
verified_webhook = verify_webhook_event_signature(
121
- body=json.dumps(webhook.model_dump()),
+ body=webhook.model_dump_json(),
122
secret=secret,
123
timestamp=timestamp,
124
expected_signature=signature,
0 commit comments