@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
def test_print_unconfigured_settings(self, mock_pretty_output):

    class MockSetting():

        def __init__(self, name, required):
            self.name = name
            self.required = required
    app_name = 'foo'
    mock_setting = [MockSetting('test_name', True)]
    install_commands.print_unconfigured_settings(app_name, mock_setting)
    po_call_args = mock_pretty_output().__enter__().write.call_args_list
    self.assertEqual(f'''
The following settings were not configured for app: {app_name}:
''', po_call_args[0][0][0])
    self.assertIn('test_name', po_call_args[2][0][0])
@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
def test_print_unconfigured_settings(self, mock_pretty_output):

    class MockSetting():

        def __init__(self, name, required):
            self.name = name
            self.required = required
    app_name = 'foo'
    mock_setting = [MockSetting('test_name', True)]
    install_commands.print_unconfigured_settings(app_name, mock_setting)
    po_call_args = mock_pretty_output().__enter__().write.call_args_list
    self.assertEqual(f'
The following settings were not configured for app: {app_name}:
', po_call_args[0][0][0])
    self.assertIn('test_name', po_call_args[2][0][0])