@mock.patch('tethys_apps.cli.install_commands.get_service_from_name', return_value={'service_type': 'service_type', 'linkParam': 'linkParam'})
@mock.patch('tethys_apps.cli.install_commands.link_service_to_app_setting')
def test_find_and_link(self, mock_link_service_to_app_setting, _):
    service_type = 'service_type'
    setting_name = 'setting_name'
    service_name = 'service_name'
    app_name = 'app_name'
    install_commands.find_and_link(service_type, setting_name, service_name, app_name)
    mock_link_service_to_app_setting.assert_called_with('service_type', service_name, app_name, 'linkParam', setting_name)
@mock.patch('tethys_apps.cli.install_commands.get_service_from_name', return_value={'service_type': 'service_type', 'linkParam': 'linkParam'})
@mock.patch('tethys_apps.cli.install_commands.link_service_to_app_setting')
def test_find_and_link(self, mock_link_service_to_app_setting, _):
    service_type = 'service_type'
    setting_name = 'setting_name'
    service_name = 'service_name'
    app_name = 'app_name'
    install_commands.find_and_link(service_type, setting_name, service_name, app_name)
    mock_link_service_to_app_setting.assert_called_with('service_type', service_name, app_name, 'linkParam', setting_name)