Align folder permissions: roots deletable, root maps rename-only, world map locked.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-07 14:48:22 +08:00
parent 1b592490a5
commit 77832b271d
4 changed files with 85 additions and 13 deletions

View file

@ -450,6 +450,12 @@ class UmeHierarchyTests(unittest.TestCase):
with self.assertRaises(HTTPException) as ctx2:
delete_view(self.db, flat.id)
self.assertEqual(ctx2.exception.detail, "cannot_delete_world_map_view")
from netx_api.topology_schemas import TopologyViewUpdate
from netx_api.topology_views_tree import update_view
with self.assertRaises(HTTPException) as ctx3:
update_view(self.db, flat.id, TopologyViewUpdate(name="Nope"))
self.assertEqual(ctx3.exception.detail, "cannot_rename_world_map_view")
def test_flat_slots_do_not_overlap(self):
self._seed_tree()