# 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/get_file.py
# def get_file(arg_namespace, client: Uploadcare):
#     file = client.file(arg_namespace.path)
#     pprint(file.info)


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



@pytest.mark.vcr
def test_get_file_by_uuid(capsys, uploadcare):
    get_file(
        arg_namespace("get 638d0296-fda1-4102-9b18-d28b37494298"), uploadcare
    )
    captured = capsys.readouterr()
    assert '"uuid": "638d0296-fda1-4102-9b18-d28b37494298"' in captured.out


@pytest.mark.vcr
def test_get_file_by_cdn_url(capsys, uploadcare):
    get_file(

# 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/get_file.py
# def get_file(arg_namespace, client: Uploadcare):
#     file = client.file(arg_namespace.path)
#     pprint(file.info)


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




@pytest.mark.vcr
def test_get_file_by_uuid(capsys, uploadcare):
    get_file(
        arg_namespace("get 638d0296-fda1-4102-9b18-d28b37494298"), uploadcare
    )
    captured = capsys.readouterr()
    assert '"uuid": "638d0296-fda1-4102-9b18-d28b37494298"' in captured.out


@pytest.mark.vcr
def test_get_file_by_cdn_url(capsys, uploadcare):
    get_file(

        arg_namespace(