def __init__(self): Logger.debug(TAG, 'Initialising Tornado Application...') handlers = self.define_handlers() settings = self.define_settings() super(Application, self).__init__(handlers, **settings)
result = DB.coll.count_documents(object_dict) if result < 1 and not FORCE_RERUN: # Ignore if in the list object_dict.update( {'retry_count': { '$gte': constant.TEST_MAX_RETRY }}) if DB.failed_tests.count_documents(object_dict): bs_tests_ignored.append({ "info_browser": obj['info_browser'], "test_case": case }) continue logger.debug('New test detected {}'.format(object_dict)) bs_tests.append(obj) elif FORCE_RERUN: logger.debug('Rerun test {}'.format(object_dict)) bs_tests.append(obj) else: logger.info('No tests for driver') logger.info('IGNORE_TESTS:{}'.format(bs_tests_ignored)) logger.info('BS_TESTS:{}'.format(bs_tests)) logger.info('AMOUNT_IGNORE_TESTS:{}'.format(len(bs_tests_ignored))) logger.info('AMOUNT_BS_TESTS:{}'.format(len(bs_tests))) run_bs_list(bs_tests) DB.close()