def test_is_event_in_progress_true(self): bot = 'test' user = '******' DataImporterLogProcessor.add_log(bot, user, is_data_uploaded=False) assert DataImporterLogProcessor.is_event_in_progress(bot, False) with pytest.raises(AppException): DataImporterLogProcessor.is_event_in_progress(bot)
def test_is_event_in_progress_false(self): bot = 'test' assert not DataImporterLogProcessor.is_event_in_progress(bot)