code: def test_unavailable_table_does_not_break_sort_relationships():
      # https://github.com/simonw/datasette/issues/1305
      with make_app_client(
          config={
              "databases": {
                  "fixtures": {
                      "tables": {
                          "foreign_key_references": {"allow": False}
                      }
                  }
              }
          }
      ) as client:
          response = client.get("/?_sort=relationships")
          assert response.status == 200
  
file_path: datasette/tests/test_table_html.py
imports: from datasette.app import Datasette, Database
  from bs4 import BeautifulSoup
  from .fixtures import app_client, make_app_client
  import pathlib
  import pytest
  import urllib.parse
  from .utils import assert_footer_links, inner_html
label_desc: Use image node_id 4 for calling a global function with example usage: test_unavailable_table_does_not_break_sort_relationships() without return types