From 8b0af15b8361fbec79bf45e8e966c65bdc560898 Mon Sep 17 00:00:00 2001 From: Sebastian Mohr Date: Wed, 16 Jul 2025 15:15:43 +0200 Subject: [PATCH] Use load_plugins directly as the plugin mixin version wants to create an instance which is not wanted here. --- test/test_plugins.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_plugins.py b/test/test_plugins.py index b42260b98..cc4e2f259 100644 --- a/test/test_plugins.py +++ b/test/test_plugins.py @@ -561,8 +561,11 @@ class TestImportAllPlugins(PluginMixin): """Test that a plugin is importable without an error using the load_plugins function.""" + from beets.plugins import load_plugins + caplog.set_level(logging.WARNING) - self.load_plugins(plugin_name) + caplog.clear() + load_plugins(plugin_name) # Check for warnings, is a bit hacky but we can make full use of the beets # load_plugins code that way