Exemplo n.º 1
0
    def setup_method(self):
        data_dir = os.path.join(os.path.dirname(__file__), os.pardir, 'data', 'whoscored')

        self.loader = opta.OptaLoader(
            root=data_dir,
            parser='whoscored',
            feeds={'whoscored': '{game_id}.json'},
        )
Exemplo n.º 2
0
    def setup_method(self):
        data_dir = os.path.join(os.path.dirname(__file__), os.pardir, 'data', 'opta')

        self.loader = opta.OptaLoader(
            root=data_dir,
            parser='xml',
            feeds={
                'f7': 'f7-{competition_id}-{season_id}-{game_id}-matchresults.xml',
                'f24': 'f24-{competition_id}-{season_id}-{game_id}-eventdetails.xml',
            },
        )
Exemplo n.º 3
0
 def setup_method(self):
     data_dir = os.path.join(os.path.dirname(__file__), os.pardir, 'data', 'opta')
     self.loader = opta.OptaLoader(
         root=data_dir,
         parser='json',
         feeds={
             'f1': 'tournament-{season_id}-{competition_id}.json',
             'f9': 'match-{season_id}-{competition_id}-{game_id}.json',
             'f24': 'match-{season_id}-{competition_id}-{game_id}.json',
         },
     )