We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e727990 commit e564995Copy full SHA for e564995
tests/test_basic_bot.py
@@ -0,0 +1,22 @@
1
+import pytest
2
+import discord
3
+
4
+@pytest.mark.asyncio
5
+async def test_bot_login_failure_login():
6
+ bot = discord.Bot()
7
8
+ with pytest.raises(discord.LoginFailure):
9
+ await bot.login("invalid_token")
10
11
12
+async def test_bot_login_failure_start():
13
14
15
16
+ await bot.start("invalid_token")
17
18
+def test_bot_login_failure_run():
19
20
21
22
+ bot.run("invalid_token")
0 commit comments