def test_loading(): for i in range(7): print("load events: ({})".format(i)) result = try_load(load_events, name) check_result(json_dumps(result), min_size) logging.info("PASS: loading")
def test_loading(): for i in range(7): print("iteration: ({})".format(i)) result = try_load(load_events, name) check_result(json_dumps(result), min_size) events_amount = get_events_amount(result["sport_tree"]) if len(result["events"]) < int(events_amount * allowable_ratio): raise LoadException("got too few events") logging.info("PASS: loading")
def _get_new_surebets(): sample = try_load(load_events, name, session=self.session) return try_parse(parse, sample, name)
def _load(): try_load(load, name, session=self.session, account=self.account)
def _load_events(): sample = try_load(load_events, name) try_parse(parse, sample, name, bookmaker=bookmaker) convert_olimp(bookmaker)
def _load_events(): sample = try_load(load_events, name, browser=self.selenium.browser) line = try_load(load_events_json, name) try_parse(parse, sample, name, bookmaker=bookmaker) try_parse(parse_json, line, name, bookmaker=bookmaker)
def _load(): try_load(load, name, browser=self.selenium.browser)