mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +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__):
|
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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue