Discover Serato smart crate definitions

This commit is contained in:
Philip Guzman
2026-07-01 08:06:19 -07:00
parent 71bca064ed
commit a384cdc88d
12 changed files with 117 additions and 18 deletions
+3 -2
View File
@@ -63,14 +63,14 @@ def test_empty_library_has_no_health_score():
def test_smart_crate_references_are_reported_but_not_scored():
static_reference = reference("Found.mp3")
smart_reference = TrackReference(
Path("Smartcrates/Dynamic.crate"),
Path("SmartCrates/Dynamic.scrate"),
Path("/old/House/Dynamic.mp3"),
"Dynamic.mp3",
)
crates = [
Crate(Path("Subcrates/Static.crate"), (static_reference,), CrateKind.STATIC),
Crate(
Path("Smartcrates/Dynamic.crate"),
Path("SmartCrates/Dynamic.scrate"),
(smart_reference,),
CrateKind.SMART,
),
@@ -85,6 +85,7 @@ def test_smart_crate_references_are_reported_but_not_scored():
assert report.missing_references == 0
assert report.static_crates == 1
assert report.smart_crates == 1
assert report.smart_crate_containers == 0
assert report.dynamic_references_excluded == 1