Closed swarajd closed 2 years ago
I have a test as follows:
@pytest.mark.asyncio async def test_bot(bot): mem = await dpytest.member_join(name="Foo") print(mem)
I would assume that it can create the user, but in this case it just returns None. Any idea why this might be? I'm using dpytest ==0.5.3
None
dpytest ==0.5.3
The solution was to set the intents in the fixture:
@pytest.fixture def bot(event_loop): bot = BotName(loop=event_loop, intents=discord.Intents.all()) dpytest.configure(bot) return bot
I have a test as follows:
I would assume that it can create the user, but in this case it just returns
None
. Any idea why this might be? I'm usingdpytest ==0.5.3