Beispiel #1
0
 def setUp(self):
     """ setup test environment """
     import logging
     logging.basicConfig(level=logging.CRITICAL)
     self.logger = logging.getLogger('test_hockey')
     self.client = APIClient()
     testdata_load()
Beispiel #2
0
 def setUp(self):
     """ setup test environment """
     from rest.functions.season import season_latest_get
     import logging
     logging.basicConfig(level=logging.CRITICAL)
     self.logger = logging.getLogger('test_hockey')
     self.season_latest_get = season_latest_get
     testdata_load()
Beispiel #3
0
 def setUp(self):
     """ setup test environment """
     from rest.functions.player import player_list_get, player_add
     import logging
     logging.basicConfig(level=logging.CRITICAL)
     self.logger = logging.getLogger('test_hockey')
     self.player_list_get = player_list_get
     self.player_add = player_add
     testdata_load()
Beispiel #4
0
 def setUp(self):
     """ setup test environment """
     from rest.functions.shot import _shoot_coordinates_convert, shot_list_get, shot_add
     import logging
     logging.basicConfig(level=logging.CRITICAL)
     self.logger = logging.getLogger('test_hockey')
     self._shoot_coordinates_convert = _shoot_coordinates_convert
     self.shot_add = shot_add
     self.shot_list_get = shot_list_get
     testdata_load()
 def setUp(self):
     """ setup test environment """
     from rest.functions.periodevent import periodevent_add
     import logging
     logging.basicConfig(level=logging.CRITICAL)
     self.logger = logging.getLogger('test_hockey')
     self.periodevent_add = periodevent_add
     testdata_load()
     from rest.models import Match
     Match.objects.create(match_id=3,
                          season_id=1,
                          date="2020-12-05",
                          date_uts=1606894220,
                          home_team_id=1,
                          visitor_team_id=2,
                          result='3:1')