Skip to content

Commit

Permalink
test: additional params in webhook create/update calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Feb 14, 2025
1 parent 0f38da0 commit d3f792b
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 51 deletions.
37 changes: 18 additions & 19 deletions tests/cassettes/test_webhook_create.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 26 additions & 28 deletions tests/cassettes/test_webhook_update.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions tests/test_webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


@pytest.mark.vcr()
def test_webhook_create(webhook_url, test_client):
webhook = test_client.webhook.create(url=webhook_url)
def test_webhook_create(webhook_url, webhook_secret, test_client):
webhook = test_client.webhook.create(url=webhook_url, params={"webhook_secret": webhook_secret})

assert isinstance(webhook, Webhook)
assert str.startswith(webhook.id, "hook_")
Expand Down Expand Up @@ -42,9 +42,9 @@ def test_webhook_all(page_size, test_client):


@pytest.mark.vcr()
def test_webhook_update(webhook_url, test_client):
def test_webhook_update(webhook_url, webhook_secret, test_client):
webhook = test_client.webhook.create(url=webhook_url)
test_client.webhook.update(webhook.id)
test_client.webhook.update(webhook.id, params={"webhook_secret": webhook_secret})

assert isinstance(webhook, Webhook)

Expand Down

0 comments on commit d3f792b

Please sign in to comment.