def test_install(tmp_path, httpx_mock: HTTPXMock):
    httpx_mock.add_response(method='POST', json={'state': 'success', 'detail': 'installed'})
    time_skill = get_test_resource('time_example')
    try:
        install(time_skill.as_posix(), ['https://example.com'], cache=False, force=False, start_on_boot=False)
    except click.exceptions.Exit as e:
        assert (e.exit_code == 0)
def test_install(tmp_path, httpx_mock: HTTPXMock):
    httpx_mock.add_response(method='POST', json={'state': 'success', 'detail': 'installed'})
    time_skill = get_test_resource('time_example')
    try:
        install(time_skill.as_posix(), ['https://example.com'], cache=False, force=False, start_on_boot=False)
    except click.exceptions.Exit as e:
        assert (e.exit_code == 0)