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