code: def test_table_list_respects_view_table():
      with make_app_client(
          config={
              "databases": {
                  "fixtures": {
                      "tables": {
                          "compound_three_primary_keys": {
                              "allow": {"id": "root"}
                          },
                          # And a SQL view too:
                          "paginated_view": {"allow": {"id": "root"}},
                      }
                  }
              }
          }
      ) as client:
          html_fragments = [
              ">compound_three_primary_keys</a> 🔒",
              ">paginated_view</a> 🔒",
          ]
          anon_response = client.get("/fixtures")
          for html_fragment in html_fragments:
              assert html_fragment not in anon_response.text
          auth_response = client.get(
              "/fixtures",
              cookies={"ds_actor": client.actor_cookie({"id": "root"})},
          )
          for html_fragment in html_fragments:
              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 7 for calling a global function with example usage: test_table_list_respects_view_table() without return types