code: def test_query_list_respects_view_query():
      with make_app_client(
          config={
              "databases": {
                  "fixtures": {
                      "queries": {
                          "q": {
                              "sql": "select 1 + 1",
                              "allow": {"id": "root"},
                          }
                      }
                  }
              }
          }
      ) as client:
          html_fragment = '<li><a href="/fixtures/q" title="select 1 + 1">q</a> 🔒</li>'
          anon_response = client.get("/fixtures")
          assert html_fragment not in anon_response.text
          assert '"/fixtures/q"' not in anon_response.text
          auth_response = client.get(
              "/fixtures",
              cookies={"ds_actor": client.actor_cookie({"id": "root"})},
          )
          assert html_fragment in auth_response.text
  
imports: import collections
  from datasette.app import Datasette
  from datasette.cli import cli
  from datasette.default_permissions import restrictions_allow_action
  from .fixtures import app_client, assert_permissions_checked, make_app_client
  from click.testing import CliRunner
  from bs4 import BeautifulSoup
  import copy
  import json
  from pprint import pprint
  import pytest_asyncio
  import pytest
  import re
  import time
  import urllib
label_desc: Use image node_id 10 for calling a global function with example usage: test_query_list_respects_view_query() without return types