# 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/update_webhook.py
# def update_webhook(arg_namespace, client: Uploadcare):  # noqa: C901
#     kwargs = {}
# 
#     if arg_namespace.target_url is not None:
#         kwargs["target_url"] = arg_namespace.target_url
# 
#     if arg_namespace.activate:
#         kwargs["is_active"] = True
#     elif arg_namespace.deactivate:
#         kwargs["is_active"] = False
# 
#     if arg_namespace.event is not None:
#         kwargs["event"] = arg_namespace.event
# 
#     if arg_namespace.signing_secret is not None:
#         kwargs["signing_secret"] = arg_namespace.signing_secret
# 
#     webhook = client.update_webhook(
#         webhook_id=arg_namespace.webhook_id, **kwargs
#     )
#     pprint(webhook.dict())


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



@pytest.mark.vcr
def test_update_webhooks(capsys, uploadcare):
    update_webhook(

# 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/update_webhook.py
# def update_webhook(arg_namespace, client: Uploadcare):  # noqa: C901
#     kwargs = {}
# 
#     if arg_namespace.target_url is not None:
#         kwargs["target_url"] = arg_namespace.target_url
# 
#     if arg_namespace.activate:
#         kwargs["is_active"] = True
#     elif arg_namespace.deactivate:
#         kwargs["is_active"] = False
# 
#     if arg_namespace.event is not None:
#         kwargs["event"] = arg_namespace.event
# 
#     if arg_namespace.signing_secret is not None:
#         kwargs["signing_secret"] = arg_namespace.signing_secret
# 
#     webhook = client.update_webhook(
#         webhook_id=arg_namespace.webhook_id, **kwargs
#     )
#     pprint(webhook.dict())


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




@pytest.mark.vcr
def test_update_webhooks(capsys, uploadcare):
    update_webhook(

        arg_namespace(