@patch('configuration.configuration_parser.parse', return_value=mock_configurqation)
@patch('tso.tsocli.command.cli_pipeline')
def test_cli_should_call_pipeline_when_successful(self, mock_pipeline, mock_config_parser):
    tsocli.main(['schedule', '--start-date-time', '2019-03-01 19:00', '--end-date-time', '2019-03-12 19:00', '--export-to-file', '--export-to-browser'])
    assert mock_pipeline.called
@patch('configuration.configuration_parser.parse', return_value=mock_configurqation)
@patch('tso.tsocli.command.cli_pipeline')
def test_cli_should_call_pipeline_when_successful(self, mock_pipeline, mock_config_parser):
    tsocli.main(['schedule', '--start-date-time', '2019-03-01 19:00', '--end-date-time', '2019-03-12 19:00', '--export-to-file', '--export-to-browser'])
    assert mock_pipeline.called