From c05f0bb81df4c52d41cfe07f91d90bfdf1d4946a Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Sat, 1 Aug 2026 00:50:19 -0700 Subject: [PATCH] test: importorskip discord.py in the slash-gate isolation test CI's plugin-test slice runs without the discord optional extra; the raw import failed with ModuleNotFoundError while every other test in the file uses injected mock modules. --- tests/plugins/platforms/test_discord_gate_isolation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/plugins/platforms/test_discord_gate_isolation.py b/tests/plugins/platforms/test_discord_gate_isolation.py index dbd3aa65cc89a..0844c7372a3c8 100644 --- a/tests/plugins/platforms/test_discord_gate_isolation.py +++ b/tests/plugins/platforms/test_discord_gate_isolation.py @@ -190,7 +190,9 @@ class TestSlashGateIsolation: def test_evaluate_slash_channel_gate_per_adapter(self, monkeypatch): import types - import discord as discord_lib + discord_lib = pytest.importorskip( + "discord", reason="discord.py optional dep not installed" + ) a = _adapter() b = _adapter()