From 130dad268da4f121a5431a92c255299f39d03b1b Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 23 Oct 2025 15:19:35 -0700 Subject: [PATCH] Fix test_navigation_menu_links by enabling root_enabled for root actor --- tests/test_html.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_html.py b/tests/test_html.py index 6c838549..493dbdd8 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -962,6 +962,9 @@ def test_edit_sql_link_not_shown_if_user_lacks_permission(permission_allowed): async def test_navigation_menu_links( ds_client, actor_id, should_have_links, should_not_have_links ): + # Enable root user if testing with root actor + if actor_id == "root": + ds_client.ds.root_enabled = True cookies = {} if actor_id: cookies = {"ds_actor": ds_client.actor_cookie({"id": actor_id})}