@mock.patch('tethys_apps.cli.install_commands.get_service_from_name', return_value=False)
@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
def test_find_and_link_warning(self, mock_pretty_output, _):
    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)
    po_call_args = mock_pretty_output().__enter__().write.call_args_list
    self.assertEqual(f'Warning: Could not find service of type: {service_type} with the name/id: {service_name}', po_call_args[0][0][0])
@mock.patch('tethys_apps.cli.install_commands.get_service_from_name', return_value=False)
@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
def test_find_and_link_warning(self, mock_pretty_output, _):
    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)
    po_call_args = mock_pretty_output().__enter__().write.call_args_list
    self.assertEqual(f'Warning: Could not find service of type: {service_type} with the name/id: {service_name}', po_call_args[0][0][0])