From: Stefano Rivera <stefano@rivera.za.net>
Date: Mon, 25 Nov 2024 11:43:29 +0100
Subject: Skip autobpm tests if the autobpm binary isn't available

Forwarded: https://github.com/beetbox/beets/pull/5516
---
 test/plugins/test_autobpm.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/plugins/test_autobpm.py b/test/plugins/test_autobpm.py
index b4d7005..11a1aae 100644
--- a/test/plugins/test_autobpm.py
+++ b/test/plugins/test_autobpm.py
@@ -1,7 +1,11 @@
+import shutil
+
 import pytest
 
 from beets.test.helper import ImportHelper, PluginMixin
 
+if shutil.which("autobpm") is None:
+    pytest.skip("autobpm isn't available", allow_module_level=True)
 
 class TestAutoBPMPlugin(PluginMixin, ImportHelper):
     plugin = "autobpm"
