Use load_plugins directly as the plugin mixin version wants

to create an instance which is not wanted here.
This commit is contained in:
Sebastian Mohr 2025-07-16 15:15:43 +02:00
parent 3a2b6d85a4
commit 8b0af15b83

View file

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