mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix test_navigation_menu_links by enabling root_enabled for root actor
This commit is contained in:
parent
28a69d19a2
commit
d4dd08933e
1 changed files with 3 additions and 0 deletions
|
|
@ -962,6 +962,9 @@ def test_edit_sql_link_not_shown_if_user_lacks_permission(permission_allowed):
|
||||||
async def test_navigation_menu_links(
|
async def test_navigation_menu_links(
|
||||||
ds_client, actor_id, should_have_links, should_not_have_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 = {}
|
cookies = {}
|
||||||
if actor_id:
|
if actor_id:
|
||||||
cookies = {"ds_actor": ds_client.actor_cookie({"id": actor_id})}
|
cookies = {"ds_actor": ds_client.actor_cookie({"id": actor_id})}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue