@mock.patch('tethys_apps.cli.install_commands.run_services')
@mock.patch('tethys_apps.cli.install_commands.call')
@mock.patch('tethys_apps.cli.install_commands.exit')
@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
def test_no_conda_input_file(self, mock_pretty_output, mock_exit, _, __):
    file_path = os.path.join(self.root_app_path, 'install-no-dep.yml')
    args = mock.MagicMock(file=file_path, verbose=False)
    mock_exit.side_effect = SystemExit
    self.assertRaises(SystemExit, install_commands.install_command, args)
    po_call_args = mock_pretty_output().__enter__().write.call_args_list
    self.assertIn('Running application install....', po_call_args[0][0][0])
    self.assertIn('Quiet mode: No additional service setting validation will be performed.', po_call_args[1][0][0])
    self.assertIn('Services Configuration Completed.', po_call_args[2][0][0])
    self.assertIn('Skipping syncstores.', po_call_args[3][0][0])
    mock_exit.assert_called_with(0)
@mock.patch('tethys_apps.cli.install_commands.run_services')
@mock.patch('tethys_apps.cli.install_commands.call')
@mock.patch('tethys_apps.cli.install_commands.exit')
@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
def test_no_conda_input_file(self, mock_pretty_output, mock_exit, _, __):
    file_path = os.path.join(self.root_app_path, 'install-no-dep.yml')
    args = mock.MagicMock(file=file_path, verbose=False)
    mock_exit.side_effect = SystemExit
    self.assertRaises(SystemExit, install_commands.install_command, args)
    po_call_args = mock_pretty_output().__enter__().write.call_args_list
    self.assertIn('Running application install....', po_call_args[0][0][0])
    self.assertIn('Quiet mode: No additional service setting validation will be performed.', po_call_args[1][0][0])
    self.assertIn('Services Configuration Completed.', po_call_args[2][0][0])
    self.assertIn('Skipping syncstores.', po_call_args[3][0][0])
    mock_exit.assert_called_with(0)