Propagate auto-track intent to new seasons #76

Merged
naps62-yolo merged 5 commits from issue/35-auto-track into main 2026-08-22 22:26:23 +01:00
Showing only changes of commit 780bca49df - Show all commits
+5 -1
View File
@@ -68,12 +68,16 @@ mod tests {
.json()
.await
.expect("json");
assert_eq!(roots.len(), 2, "the two seeded movie roots: {roots:?}");
assert_eq!(roots.len(), 4, "the seeded movie and TV roots: {roots:?}");
assert_eq!(roots[0]["audience"], "main");
assert_eq!(roots[0]["policy_name"], "Movies — main");
assert_eq!(roots[1]["audience"], "kids");
assert!(roots[1]["path"]
.as_str()
.is_some_and(|p| p.contains("kids")));
assert_eq!(roots[2]["kind"], "tv");
assert_eq!(roots[2]["policy_name"], "TV — main");
assert_eq!(roots[3]["kind"], "tv");
assert_eq!(roots[3]["policy_name"], "TV — kids");
}
}