def test_tournaments_active(): loop_run(async_tournaments_active())
def test_grandmaster_league(): loop_run(async_grandmaster_league())
def test_summoner_league(): loop_run(async_summoner_league())
def test_match(): loop_run(async_match())
def test_division_league_2(): loop_run(async_division_league_2())
def test_current_game(): loop_run(async_current_game())
def test_status(): status = loop_run(lol.Status(platform="na1").get()) status.dict(pyotify=True)
def test_match_timeline(): loop_run(async_match_timeline())
def test_timeline(): loop_run(async_timeline())
def test_status(): status = loop_run(lol.Status(platform="na1").get()) status.dict(recursive=True)
def test_cards(): loop_run(async_cards())
def test_leaderboard_query(): loop_run(async_leaderboard_query())
def test_leaderboard(): loop_run(async_leaderboard())
def test_tournament_by_id(): loop_run(async_tournament_by_id())
def test_trait(): loop_run(async_trait())
worksheet.write('B1', 'Participant', bold) worksheet.write('C1', 'Stage', bold) worksheet.write('D1', 'Alive', bold) worksheet.merge_range(0, 4, 0, 3 + max_traits, 'Traits', bold) worksheet.merge_range(0, 4 + max_traits, 0, 3 + max_traits + max_units, 'Units', bold) row = 2 for participant, info in outputs.items(): worksheet.write(f"A{row}", info['placement'], wrapcenter) worksheet.write(f"B{row}", participant, wrapcenter) worksheet.write(f"C{row}", f"{info['last_round'] // 5}-{info['last_round'] % 5}", wrapcenter) worksheet.write(f"D{row}", str(timedelta(seconds=int(info['time_eliminated']))), wrapcenter) for ind, trait in enumerate( map(lambda x: f"{x['name']} (x{x['num_units']})\n", info['traits'])): worksheet.write(row - 1, 4 + ind, trait, wrapcenter) for ind, unit in enumerate( map(lambda x: f"{x['character_id']} (\u2605{x['tier']})\n", info['units'])): worksheet.write(row - 1, 4 + max_traits + ind, unit, wrapcenter) row += 1 workbook.close() if __name__ == "__main__": loop_run(main())
def test_featured_games(): loop_run(async_featured_game())
def post(self, **kwargs): return loop_run(super().post(**kwargs))
def get(self, **kwargs): return loop_run(super().get(**kwargs))
def test_account(): loop_run(async_account())
def test_match_history(): loop_run(async_match_history())
def test_active_platform(): loop_run(async_active_platform())
def test_recent(): loop_run(async_recent())
def test_profile_icon(): loop_run(async_profile_icon())
def test_challenger_league(): loop_run(async_challenger_league())
def test_champion(): loop_run(async_champion())
def test_master_league(): loop_run(async_master_league())
def test_item(): loop_run(async_item())
def test_league(): loop_run(async_league())
def test_content_full(): loop_run(async_content_full())