Skip to content

The agent that grows with you

test: importorskip discord.py in the slash-gate isolation test

Tekniumc05f0bb81df4
diff --git a/tests/plugins/platforms/test_discord_gate_isolation.py b/tests/plugins/platforms/test_discord_gate_isolation.py
index dbd3aa65cc8..0844c7372a3 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()