@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
@mock.patch('tethys_apps.cli.install_commands.call')
def test_run_sync_stores(self, mock_call, mock_pretty_output):
    from tethys_apps.models import PersistentStoreConnectionSetting
    app_name = 'foo'
    install_commands.run_sync_stores(app_name, [PersistentStoreConnectionSetting()])
    po_call_args = mock_pretty_output().__enter__().write.call_args_list
    self.assertEqual(f'Running syncstores for app {app_name}', po_call_args[0][0][0])
    mock_call.assert_called_with(['tethys', 'syncstores', app_name])
@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
@mock.patch('tethys_apps.cli.install_commands.call')
def test_run_sync_stores(self, mock_call, mock_pretty_output):
    from tethys_apps.models import PersistentStoreConnectionSetting
    app_name = 'foo'
    install_commands.run_sync_stores(app_name, [PersistentStoreConnectionSetting()])
    po_call_args = mock_pretty_output().__enter__().write.call_args_list
    self.assertEqual(f'Running syncstores for app {app_name}', po_call_args[0][0][0])
    mock_call.assert_called_with(['tethys', 'syncstores', app_name])