mirror of
https://github.com/beetbox/beets.git
synced 2025-12-14 20:43:41 +01:00
Skip autobpm tests if librosa isn't available (#5516)
Debian doesn't have `librosa`. Allow the tests to continue.
This commit is contained in:
commit
0eab8b68dd
1 changed files with 7 additions and 0 deletions
|
|
@ -1,7 +1,14 @@
|
|||
import importlib.util
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
from beets.test.helper import ImportHelper, PluginMixin
|
||||
|
||||
github_ci = os.environ.get("GITHUB_ACTIONS") == "true"
|
||||
if not github_ci and not importlib.util.find_spec("librosa"):
|
||||
pytest.skip("librosa isn't available", allow_module_level=True)
|
||||
|
||||
|
||||
class TestAutoBPMPlugin(PluginMixin, ImportHelper):
|
||||
plugin = "autobpm"
|
||||
|
|
|
|||
Loading…
Reference in a new issue