@mock.patch('tethys_apps.cli.install_commands.run_services')
@mock.patch('tethys_apps.cli.install_commands.run_sync_stores')
@mock.patch('tethys_apps.cli.install_commands.run_interactive_services')
@mock.patch('tethys_apps.cli.install_commands.call')
@mock.patch('tethys_apps.cli.install_commands.run_portal_install', return_value=False)
@mock.patch('tethys_apps.cli.install_commands.run_services')
@mock.patch('tethys_apps.cli.install_commands.exit')
@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
def test_skip_input_file(self, mock_pretty_output, mock_exit, _, __, ___, ____, _____, ______):
    file_path = os.path.join(self.root_app_path, 'install-skip-setup.yml')
    mock_exit.side_effect = SystemExit
    args = mock.MagicMock(file=file_path, verbose=False)
    self.assertRaises(SystemExit, install_commands.install_command, args)
    args = mock.MagicMock(file=file_path, develop=False)
    self.assertRaises(SystemExit, install_commands.install_command, args)
    args = mock.MagicMock(file=file_path, verbose=False, develop=False, force_services=False, quiet=False, no_sync=False)
    self.assertRaises(SystemExit, install_commands.install_command, args)
    po_call_args = mock_pretty_output().__enter__().write.call_args_list
    self.assertEqual('Skipping package installation, Skip option found.', po_call_args[0][0][0])
    mock_exit.assert_called_with(0)
@mock.patch('tethys_apps.cli.install_commands.run_services')
@mock.patch('tethys_apps.cli.install_commands.run_sync_stores')
@mock.patch('tethys_apps.cli.install_commands.run_interactive_services')
@mock.patch('tethys_apps.cli.install_commands.call')
@mock.patch('tethys_apps.cli.install_commands.run_portal_install', return_value=False)
@mock.patch('tethys_apps.cli.install_commands.run_services')
@mock.patch('tethys_apps.cli.install_commands.exit')
@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
def test_skip_input_file(self, mock_pretty_output, mock_exit, _, __, ___, ____, _____, ______):
    file_path = os.path.join(self.root_app_path, 'install-skip-setup.yml')
    mock_exit.side_effect = SystemExit
    args = mock.MagicMock(file=file_path, verbose=False)
    self.assertRaises(SystemExit, install_commands.install_command, args)
    args = mock.MagicMock(file=file_path, develop=False)
    self.assertRaises(SystemExit, install_commands.install_command, args)
    args = mock.MagicMock(file=file_path, verbose=False, develop=False, force_services=False, quiet=False, no_sync=False)
    self.assertRaises(SystemExit, install_commands.install_command, args)
    po_call_args = mock_pretty_output().__enter__().write.call_args_list
    self.assertEqual('Skipping package installation, Skip option found.', po_call_args[0][0][0])
    mock_exit.assert_called_with(0)