aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_indexer.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/tests/test_indexer.py')
-rw-r--r--packages/meshbay-node/tests/test_indexer.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/meshbay-node/tests/test_indexer.py b/packages/meshbay-node/tests/test_indexer.py
index 3eac39e..56571a4 100644
--- a/packages/meshbay-node/tests/test_indexer.py
+++ b/packages/meshbay-node/tests/test_indexer.py
@@ -146,6 +146,17 @@ async def test_type_detection(shared_dir, sk_node, gek):
assert by_name["manual.pdf"] == "document"
+def test_type_detection_covers_wma_and_musepack():
+ """
+ Both formats are real audio a real library can contain, even though
+ neither one plays natively in a browser <audio> element — that gap is
+ a separate, later concern (transcoding); being correctly typed and
+ tagged is not the same thing as being playable.
+ """
+ assert indexer_mod._detect_type(Path("track.wma")) == "audio"
+ assert indexer_mod._detect_type(Path("track.mpc")) == "audio"
+
+
@pytest.mark.asyncio
async def test_hidden_files_excluded(tmp_path, sk_node, gek):
d = tmp_path / "dir"