Some typos

This commit is contained in:
Sebastian Mohr 2025-07-16 12:38:28 +02:00
parent 3c6dab57e9
commit cfab2eb56e

View file

@ -551,16 +551,13 @@ class TestImportAllPlugins:
for _, module_name, _ in pkgutil.iter_modules(namespace_pkg.__path__): for _, module_name, _ in pkgutil.iter_modules(namespace_pkg.__path__):
plugin_names.append(module_name) plugin_names.append(module_name)
# Some plugins may need additional dependencies to be installed,
# so we skip them if they are not available.
# Try to load all plugins # Try to load all plugins
from beets.plugins import load_plugins from beets.plugins import load_plugins
caplog.set_level(logging.WARNING) caplog.set_level(logging.WARNING)
load_plugins(plugin_names) load_plugins(plugin_names)
# Check for warnings, is a bit hacky but we can fully use the beets # Check for warnings, is a bit hacky but we can make full use of the beets
# load_plugins code that way # load_plugins code that way
records = [] records = []
pattern = r"ModuleNotFoundError: No module named '(.*?)'" pattern = r"ModuleNotFoundError: No module named '(.*?)'"
@ -579,10 +576,11 @@ class TestImportAllPlugins:
) )
def _is_spec_available(self, spec_name): def _is_spec_available(self, spec_name):
"""Check if a specific plugin is available. """Check if a module is available by its name.
Only works in non-GitHub CI environments as we assume that In GitHub CI environments, this method always returns True,
all dependencies are installed in the pipeline. assuming all dependencies are installed in the pipeline.
In other environments, it checks for the availability.
""" """
github_ci = os.environ.get("GITHUB_ACTIONS") == "true" github_ci = os.environ.get("GITHUB_ACTIONS") == "true"
if github_ci: if github_ci: