code: def test_allow_facet_off(allow_facet):
      with make_app_client(
          settings={"allow_facet": allow_facet}
      ) as client:
          response = client.get("/fixtures/facetable")
          expected = "DATASETTE_ALLOW_FACET = {};".format(
              "true" if allow_facet else "false"
          )
          assert expected in response.text
          if allow_facet:
              assert "Suggested facets" in response.text
          else:
              assert "Suggested facets" not in response.text
  
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 7 for calling a global function with example usage: test_allow_facet_off(allow_facet) without return types