Skip to content

Commit d3f792b

Browse files
committed
test: additional params in webhook create/update calls
1 parent 0f38da0 commit d3f792b

File tree

3 files changed

+48
-51
lines changed

3 files changed

+48
-51
lines changed

tests/cassettes/test_webhook_create.yaml

Lines changed: 18 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/cassettes/test_webhook_update.yaml

Lines changed: 26 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_webhook.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66

77
@pytest.mark.vcr()
8-
def test_webhook_create(webhook_url, test_client):
9-
webhook = test_client.webhook.create(url=webhook_url)
8+
def test_webhook_create(webhook_url, webhook_secret, test_client):
9+
webhook = test_client.webhook.create(url=webhook_url, params={"webhook_secret": webhook_secret})
1010

1111
assert isinstance(webhook, Webhook)
1212
assert str.startswith(webhook.id, "hook_")
@@ -42,9 +42,9 @@ def test_webhook_all(page_size, test_client):
4242

4343

4444
@pytest.mark.vcr()
45-
def test_webhook_update(webhook_url, test_client):
45+
def test_webhook_update(webhook_url, webhook_secret, test_client):
4646
webhook = test_client.webhook.create(url=webhook_url)
47-
test_client.webhook.update(webhook.id)
47+
test_client.webhook.update(webhook.id, params={"webhook_secret": webhook_secret})
4848

4949
assert isinstance(webhook, Webhook)
5050

0 commit comments

Comments
 (0)