Exemple #1
0
    def setUpClass(cls):
        from necrobot.test import testmatch

        cls.sheet_1 = MatchupSheet(gsheet_id=TestMatchupSheet.the_gsheet_id)
        cls.sheet_2 = MatchupSheet(gsheet_id=TestMatchupSheet.the_gsheet_id)

        cls.loop.run_until_complete(cls.sheet_1.initialize(wks_name='Sheet1'))
        cls.loop.run_until_complete(cls.sheet_2.initialize(wks_name='Sheet2'))

        cls.match_1 = TestMatchupSheet.loop.run_until_complete(
            testmatch.get_match(
                r1_name='yjalexis',
                r2_name='macnd',
                time=datetime.datetime(year=2069, month=4, day=20, hour=4, minute=20),
                cawmentator_name='incnone'
            )
        )
        cls.match_2 = TestMatchupSheet.loop.run_until_complete(
            testmatch.get_match(
                r1_name='elad',
                r2_name='wilarseny',
                time=None,
                cawmentator_name=None
            )
        )
Exemple #2
0
    def setUpClass(cls):
        import datetime
        from necrobot.test import testmatch

        utcnow = datetime.datetime.utcnow()

        cls.fake_match = TestCondorMgr.loop.run_until_complete(
            testmatch.get_match(r1_name='incnone',
                                r2_name='incnone_testing',
                                time=utcnow + datetime.timedelta(minutes=5),
                                cawmentator_name='incnone'))