Esempio n. 1
0
    def test_get_match(self):
        pubg = Rest('config.yaml', ignore_limiter=True).Pubg
        player = pubg.get_player('account.d50fdc18fcad49c691d38466bed6f8fd')
        match = pubg.get_match(
            player['data']['relationships']['matches']['data'][0]['id']
        )

        assert 'data' in match
Esempio n. 2
0
    def test_get_match(self):
        dota = Rest('config.yaml', ignore_limiter=True).OpenDota
        match_id = dota.get_pro_matches()[0]['match_id']
        match = dota.get_match(match_id)

        assert match_id == match['match_id']