Skip to content

Commit 9d72a36

Browse files
committed
Update test_webhooks.py
1 parent 36d7dfc commit 9d72a36

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_webhooks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
import json
65
from typing import Any, Dict
76
from datetime import datetime, timezone
87

@@ -118,7 +117,7 @@ def test_verify_webhook_event_signature_string_body() -> None:
118117
signature = create_webhook_signature(webhook.payload.model_dump(), timestamp, secret)
119118

120119
verified_webhook = verify_webhook_event_signature(
121-
body=json.dumps(webhook.model_dump()),
120+
body=webhook.model_dump_json(),
122121
secret=secret,
123122
timestamp=timestamp,
124123
expected_signature=signature,

0 commit comments

Comments
 (0)