stupid typo
This commit is contained in:
1 parent
4320b4cba9
commit
57a5afbe48
2 files changed
+12
-9
No files matched your search
@@ -9,7 +9,7 @@ import sys
|
||||
|
||||
sys.path.insert(0, "src")
|
||||
|
||||
from square.utilities.webhooks_helper import is_valid_webhook_event_signature
|
||||
from square.utils.webhooks_helper import verify_signature
|
||||
|
||||
# Test data from Square's documentation
|
||||
TEST_BODY = '{"hello":"world"}'
|
||||
@@ -29,8 +29,11 @@ def test_signature_validation():
|
||||
print()
|
||||
|
||||
# This should return True with Square's test data
|
||||
is_valid = is_valid_webhook_event_signature(
|
||||
TEST_BODY, TEST_SIGNATURE, TEST_SIGNATURE_KEY, TEST_NOTIFICATION_URL
|
||||
is_valid = verify_signature(
|
||||
request_body=TEST_BODY,
|
||||
signature_header=TEST_SIGNATURE,
|
||||
signature_key=TEST_SIGNATURE_KEY,
|
||||
notification_url=TEST_NOTIFICATION_URL,
|
||||
)
|
||||
|
||||
if is_valid:
|
||||
|
||||
Reference in new issue
Block a user