# 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/delete_files.py
# def delete_files(arg_namespace, client: Uploadcare):
#     client.delete_files(arg_namespace.paths)


import pytest
from tests.functional.ucare_cli.helpers import arg_namespace
from pyuploadcare.ucare_cli.commands.delete_files import delete_files
    args = arg_namespace("delete 6c5e9526-b0fe-4739-8975-72e8d5ee6342")
    assert args.wait


def test_delete_parse_no_wait_arg():
    args = arg_namespace(
        "delete --nowait 6c5e9526-b0fe-4739-8975-72e8d5ee6342"
    )
    assert not args.wait


@pytest.mark.vcr
def test_delete_one_file(uploadcare):
    args = arg_namespace(
        "delete --nowait 23762be6-cfe3-4d27-86be-9ed7d403dd43"
    )

    delete_files(args, uploadcare)

    file = uploadcare.file("23762be6-cfe3-4d27-86be-9ed7d403dd43")
    assert file.is_removed


@pytest.mark.vcr
def test_delete_several_files(uploadcare):
    args = arg_namespace(
        "delete --nowait 630a1322-a3b4-4873-a0a0-0ba6d6668eb5 "
        "dda35f47-3add-4736-b406-f48af2548c5b"
    )


# 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/delete_files.py
# def delete_files(arg_namespace, client: Uploadcare):
#     client.delete_files(arg_namespace.paths)


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

    args = arg_namespace("delete 6c5e9526-b0fe-4739-8975-72e8d5ee6342")
    assert args.wait


def test_delete_parse_no_wait_arg():
    args = arg_namespace(
        "delete --nowait 6c5e9526-b0fe-4739-8975-72e8d5ee6342"
    )
    assert not args.wait


@pytest.mark.vcr
def test_delete_one_file(uploadcare):
    args = arg_namespace(
        "delete --nowait 23762be6-cfe3-4d27-86be-9ed7d403dd43"
    )

    delete_files(args, uploadcare)

    file = uploadcare.file("23762be6-cfe3-4d27-86be-9ed7d403dd43")
    assert file.is_removed


@pytest.mark.vcr
def test_delete_several_files(uploadcare):
    args = arg_namespace(
        "delete --nowait 630a1322-a3b4-4873-a0a0-0ba6d6668eb5 "
        "dda35f47-3add-4736-b406-f48af2548c5b"
    )


    delete_files(args, uploadcare)