Esempio n. 1
0
    def test_get_match_timeline(self):
        riot = Rest('config.yaml', ignore_limiter=True).Riot

        summoner = riot.get_summoner_by_name('pandaxcentric')
        matches = riot.get_matches_for_account(summoner['accountId'])

        timeline = riot.get_match_timeline(matches['matches'][0]['gameId'])

        assert timeline['frameInterval'] > 0
Esempio n. 2
0
    def test_get_matches_for_account(self):
        riot = Rest('config.yaml', ignore_limiter=True).Riot
        summoner = riot.get_summoner_by_name('pandaxcentric')
        matches = riot.get_matches_for_account(summoner['accountId'])

        assert len(matches['matches']) > 0
Esempio n. 3
0
 def test_get_summoner_by_name(self):
     riot = Rest('config.yaml', ignore_limiter=True).Riot
     summoner = riot.get_summoner_by_name('pandaxcentric')
     assert 'id' in summoner
Esempio n. 4
0
 def test_champion_mastery_score_json_config(self):
     config_json = {'riot': {'key_id': '<hand enter key before running>'}}
     riot = Rest(config_json, ignore_limiter=True).Riot
     summoner = riot.get_summoner_by_name('pandaxcentric')
     mastery = riot.champion_mastery_score(summoner['id'])
     assert mastery >= 0
Esempio n. 5
0
 def test_champion_mastery_score(self):
     riot = Rest('config.yaml', ignore_limiter=True).Riot
     summoner = riot.get_summoner_by_name('pandaxcentric')
     mastery = riot.champion_mastery_score(summoner['id'])
     assert mastery >= 0
Esempio n. 6
0
 def test_champion_masteries(self):
     riot = Rest('config.yaml', ignore_limiter=True).Riot
     summoner = riot.get_summoner_by_name('pandaxcentric')
     champions = riot.champion_masteries(summoner['id'])
     assert len(champions) >= 0