예제 #1
0
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")
예제 #2
0
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")
예제 #3
0
 def _get_new_surebets():
     sample = try_load(load_events, name, session=self.session)
     return try_parse(parse, sample, name)
예제 #4
0
 def _load():
     try_load(load, name, session=self.session, account=self.account)
예제 #5
0
 def _load_events():
     sample = try_load(load_events, name)
     try_parse(parse, sample, name, bookmaker=bookmaker)
     convert_olimp(bookmaker)
예제 #6
0
 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)
예제 #7
0
 def _load():
     try_load(load, name, browser=self.selenium.browser)