# 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_project.py
# def get_project(arg_namespace, client: Uploadcare):
#     project: ProjectInfo = client.get_project_info()
#     pprint(project.dict())


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



@pytest.mark.vcr
def test_get_project(capsys, uploadcare):
    get_project(arg_namespace("get_project"), uploadcare)
    captured = capsys.readouterr()

# 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_project.py
# def get_project(arg_namespace, client: Uploadcare):
#     project: ProjectInfo = client.get_project_info()
#     pprint(project.dict())


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




@pytest.mark.vcr
def test_get_project(capsys, uploadcare):
    get_project(arg_namespace("get_project"), uploadcare)
    captured = capsys.readouterr()

    assert '"pub_key": ' in captured.out