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 1d76b3dCopy full SHA for 1d76b3d
tests/test_basic_bot.py
@@ -0,0 +1,26 @@
1
+import pytest
2
+
3
+import discord
4
5
6
+@pytest.mark.asyncio
7
+async def test_bot_login_failure_login():
8
+ bot = discord.Bot()
9
10
+ with pytest.raises(discord.LoginFailure):
11
+ await bot.login("invalid_token")
12
13
14
15
+async def test_bot_login_failure_start():
16
17
18
19
+ await bot.start("invalid_token")
20
21
22
+def test_bot_login_failure_run():
23
24
25
26
+ bot.run("invalid_token")
0 commit comments