Skip to content

Commit 2b8b2ea

Browse files
committed
try moving load_dotenv() outside of setup file
1 parent 50bd729 commit 2b8b2ea

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_async.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from dotenv import load_dotenv
88

99
pytestmark = pytest.mark.asyncio
10+
load_dotenv()
1011

1112

1213
class TestAsyncClient(asynctest.TestCase):
@@ -16,8 +17,6 @@ class TestAsyncClient(asynctest.TestCase):
1617
CLUB_TAG = '#QCCQCGV'
1718

1819
async def setUp(self):
19-
load_dotenv()
20-
2120
session = aiohttp.ClientSession(loop=self.loop)
2221

2322
self.client = brawlstats.Client(

tests/test_blocking.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
import brawlstats
55
from dotenv import load_dotenv
66

7+
load_dotenv()
8+
79

810
class TestBlockingClient(unittest.TestCase):
911

1012
PLAYER_TAG = '#GGJVJLU2'
1113
CLUB_TAG = '#QCCQCGV'
1214

1315
def setUp(self):
14-
load_dotenv()
1516

1617
self.client = brawlstats.Client(
1718
os.getenv('token'),

0 commit comments

Comments
 (0)