diff options
Diffstat (limited to 'packages/meshbay-node/tests/test_audio_meta_cache.py')
| -rw-r--r-- | packages/meshbay-node/tests/test_audio_meta_cache.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/meshbay-node/tests/test_audio_meta_cache.py b/packages/meshbay-node/tests/test_audio_meta_cache.py index e6ee315..835d3f6 100644 --- a/packages/meshbay-node/tests/test_audio_meta_cache.py +++ b/packages/meshbay-node/tests/test_audio_meta_cache.py @@ -14,6 +14,7 @@ old name's answer, which is the fault `_reenrich_renamed_audio_entries` exists to prevent. """ import asyncio +import shutil import subprocess from pathlib import Path @@ -23,8 +24,9 @@ from meshbay_node.indexer import enrich_audio from meshbay_node.indexer.enrich_audio import AudioEnricher from meshbay_node.media_cache import MediaCache -_HAVE_FFMPEG = ( - subprocess.run(["which", "ffmpeg"], capture_output=True).returncode == 0) +# shutil.which, not `which`: there is no `which` outside Git Bash on Windows, +# and the suite stopped at collection when run from PowerShell. +_HAVE_FFMPEG = shutil.which("ffmpeg") is not None pytestmark = pytest.mark.skipif(not _HAVE_FFMPEG, reason="ffmpeg not installed") |