File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from pathlib import Path
2- from typing import Coroutine , AsyncGenerator
2+ from typing import AsyncGenerator
33
44import pytest_asyncio
55import discord
66import discord .ext .commands as commands
77import discord .ext .test as dpytest
8- from pytest import FixtureRequest , Session
8+ from pytest import FixtureRequest
99from discord .client import _LoopSentinel
1010
1111
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ async def test_configure_members(bot: discord.Client) -> None:
8686
8787 # we can even use discord.utils.get
8888 william_member = discord .utils .get (guild .members , name = 'William' )
89- assert william_member is not None
89+ assert william_member is not None
9090 assert william_member .name == "William"
9191
9292
Original file line number Diff line number Diff line change 1- from datetime import timedelta
21import discord
32import pytest
43import discord .ext .test as dpytest
@@ -38,4 +37,3 @@ async def test_message_poll(bot: discord.Client) -> None:
3837 message = dpytest .get_message ()
3938 assert message .content == "Poll test"
4039 assert message .poll is not None
41-
You can’t perform that action at this time.
0 commit comments