aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_video_root_gates_enrichment.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/tests/test_video_root_gates_enrichment.py')
-rw-r--r--packages/meshbay-node/tests/test_video_root_gates_enrichment.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/meshbay-node/tests/test_video_root_gates_enrichment.py b/packages/meshbay-node/tests/test_video_root_gates_enrichment.py
index 9cfb819..b88ecaf 100644
--- a/packages/meshbay-node/tests/test_video_root_gates_enrichment.py
+++ b/packages/meshbay-node/tests/test_video_root_gates_enrichment.py
@@ -99,7 +99,7 @@ async def test_only_entries_under_the_configured_root_are_enriched(tmp_path):
daemon = await _make_daemon(tmp_path, shared, group_id)
try:
- await daemon._roster.set_video_root(group_id, "shared/Movies", set_by="op")
+ await daemon._roster.set_app_directories(group_id, "video", ["shared/Movies"], set_by="op")
indexer = DirectoryIndexer(
roots=one_root(shared), group_id=group_id,
sk_node=Ed25519PrivateKey.generate(), gek=generate_gek())
@@ -139,8 +139,10 @@ async def test_setting_the_video_root_sweeps_what_it_already_contains(tmp_path):
# this file all along.
state = {
"roster": daemon._roster,
- "groups_ctx": {group_id: {}},
- "enrich_video_root_fn": daemon._enrich_video_root_now,
+ # Real roots, because ops now refuses a directory that is not
+ # inside one — the per-app setters this replaced validated nothing.
+ "groups_ctx": {group_id: {"roots": one_root(shared)}},
+ "enrich_app_dirs_fns": {"video": daemon._enrich_video_root_now},
}
await ops.set_video_root(state, group_id, "shared/Movies")
await asyncio.sleep(0.05) # let the fire-and-forget sweep actually run