# Path: tests/functional/ucare_cli/helpers.py
# def arg_namespace(arguments_str):
#     return ucare_argparser().parse_args(arguments_str.split())
# 
# Path: pyuploadcare/ucare_cli/commands/create_webhook.py
# def create_webhook(arg_namespace, client: Uploadcare):
#     webhook = client.create_webhook(
#         target_url=arg_namespace.target_url,
#         is_active=arg_namespace.active,
#         event=arg_namespace.event,
#         signing_secret=arg_namespace.signing_secret,
#     )
#     pprint(webhook.dict())


import pytest
from tests.functional.ucare_cli.helpers import arg_namespace
from pyuploadcare.ucare_cli.commands.create_webhook import create_webhook



@pytest.mark.vcr
def test_create_webhooks(capsys, uploadcare):
    create_webhook(
        arg_namespace(
            "create_webhook https://webhook.site/699ba5a4-b178-41c7-b416-5d1b6739d052 --active"

# Path: tests/functional/ucare_cli/helpers.py
# def arg_namespace(arguments_str):
#     return ucare_argparser().parse_args(arguments_str.split())
# 
# Path: pyuploadcare/ucare_cli/commands/create_webhook.py
# def create_webhook(arg_namespace, client: Uploadcare):
#     webhook = client.create_webhook(
#         target_url=arg_namespace.target_url,
#         is_active=arg_namespace.active,
#         event=arg_namespace.event,
#         signing_secret=arg_namespace.signing_secret,
#     )
#     pprint(webhook.dict())


# Path: tests/functional/ucare_cli/test_create_webhook.py
import pytest
from tests.functional.ucare_cli.helpers import arg_namespace
from pyuploadcare.ucare_cli.commands.create_webhook import create_webhook




@pytest.mark.vcr
def test_create_webhooks(capsys, uploadcare):
    create_webhook(
        arg_namespace(
            "create_webhook https://webhook.site/699ba5a4-b178-41c7-b416-5d1b6739d052 --active"

        ),