From 8b6b57da33c4b9e986fa0f89df8e44b3ef6a9a79 Mon Sep 17 00:00:00 2001 From: rnxm <63553775+rnxm@users.noreply.github.com> Date: Thu, 12 Nov 2026 11:09:41 +0100 Subject: [PATCH] test: give the info cog test context an async defer #127 made info ip/template call ctx.defer(); #126's fixture predated it. Co-Authored-By: Claude Opus 5.5 --- tests/test_info_cog.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_info_cog.py b/tests/test_info_cog.py index 75d4a6b..123f7d9 100644 --- a/tests/test_info_cog.py +++ b/tests/test_info_cog.py @@ -19,6 +19,7 @@ def cog() -> Info: def ctx() -> MagicMock: ctx = MagicMock() ctx.send = AsyncMock() + ctx.defer = AsyncMock() ctx.guild = MagicMock(spec=discord.Guild) ctx.guild.fetch_member = AsyncMock() return ctx