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.
This commit is contained in:
Teknium
2026-08-01 00:50:19 -07:00
parent 81c0691e17
commit c05f0bb81d

View File

@@ -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()