mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 01:23:09 +01:00
Some typos
This commit is contained in:
parent
3c6dab57e9
commit
cfab2eb56e
1 changed files with 5 additions and 7 deletions
|
|
@ -551,16 +551,13 @@ class TestImportAllPlugins:
|
|||
for _, module_name, _ in pkgutil.iter_modules(namespace_pkg.__path__):
|
||||
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
|
||||
from beets.plugins import load_plugins
|
||||
|
||||
caplog.set_level(logging.WARNING)
|
||||
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
|
||||
records = []
|
||||
pattern = r"ModuleNotFoundError: No module named '(.*?)'"
|
||||
|
|
@ -579,10 +576,11 @@ class TestImportAllPlugins:
|
|||
)
|
||||
|
||||
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
|
||||
all dependencies are installed in the pipeline.
|
||||
In GitHub CI environments, this method always returns True,
|
||||
assuming all dependencies are installed in the pipeline.
|
||||
In other environments, it checks for the availability.
|
||||
"""
|
||||
github_ci = os.environ.get("GITHUB_ACTIONS") == "true"
|
||||
if github_ci:
|
||||
|
|
|
|||
Loading…
Reference in a new issue