mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Use load_plugins directly as the plugin mixin version wants
to create an instance which is not wanted here.
This commit is contained in:
parent
3a2b6d85a4
commit
8b0af15b83
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue