Skip to content

Commit f5494ea

Browse files
committed
update test player and club tags
1 parent dc7f082 commit f5494ea

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

brawlstats/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
import logging
44
import sys
55
import time
6+
from typing import Union
67

78
import aiohttp
89
import requests
910
from cachetools import TTLCache
1011

11-
from typing import Union
12-
1312
from .errors import Forbidden, NotFoundError, RateLimitError, ServerError, UnexpectedError
1413
from .models import BattleLog, Brawlers, Club, Constants, Members, Player, Ranking
1514
from .utils import API, bstag, typecasted

examples/async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# await only works in an async loop
1010
async def main():
11-
player = await client.get_profile('GGJVJLU2')
11+
player = await client.get_profile('V2LQY9UY')
1212
print(player.trophies) # access attributes using dot.notation
1313
print(player.solo_victories) # use snake_case instead of camelCase
1414

@@ -39,7 +39,7 @@ async def main():
3939
print(player.name, player.rank)
4040

4141
# Gets a player's recent battles
42-
battles = await client.get_battle_logs('GGJVJLU2')
42+
battles = await client.get_battle_logs('UL0GCC8')
4343
print(battles[0].battle.mode)
4444

4545
# run the async loop

examples/sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
client = brawlstats.Client('token')
55

66

7-
player = client.get_profile('GGJVJLU2')
7+
player = client.get_profile('V2LQY9UY')
88
print(player.trophies) # access attributes using dot.notation
99
print(player.solo_victories) # use snake_case instead of camelCase
1010

@@ -35,5 +35,5 @@
3535
print(player.name, player.rank)
3636

3737
# Gets a player's recent battles
38-
battles = client.get_battle_logs('GGJVJLU2')
38+
battles = client.get_battle_logs('UL0GCC8')
3939
print(battles[0].battle.mode)

tests/test_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
class TestAsyncClient(asynctest.TestCase):
1414
use_default_loop = True
1515

16-
PLAYER_TAG = '#GGJVJLU2'
17-
CLUB_TAG = '#QCCQCGV'
16+
PLAYER_TAG = '#V2LQY9UY'
17+
CLUB_TAG = '#UL0GCC8'
1818

1919
async def setUp(self):
2020
session = aiohttp.ClientSession(loop=self.loop)

tests/test_blocking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
class TestBlockingClient(unittest.TestCase):
1111

12-
PLAYER_TAG = '#GGJVJLU2'
13-
CLUB_TAG = '#QCCQCGV'
12+
PLAYER_TAG = '#V2LQY9UY'
13+
CLUB_TAG = '#UL0GCC8'
1414

1515
def setUp(self):
1616

0 commit comments

Comments
 (0)