test: cover missing-id and non-list roots; drop unreachable empty-nodes guard

This commit is contained in:
2026-07-15 22:11:36 -04:00
parent e6adaad8b3
commit 05294412df
2 changed files with 18 additions and 2 deletions
-2
View File
@@ -66,8 +66,6 @@ def load_tree_nodes(store_dir: Path, video_id: str) -> dict[str, Any]:
for root in roots:
_walk(root, 1)
if not nodes:
raise ValueError(f"展平后 nodes 为空: {tree_path}")
return {"nodes": nodes}