code: def test_facet_more_links(
      max_returned_rows,
      path,
      expected_num_facets,
      expected_ellipses,
      expected_ellipses_url,
  ):
      with make_app_client(
          settings={
              "max_returned_rows": max_returned_rows,
              "default_facet_size": 2,
          }
      ) as client:
          response = client.get(path)
          soup = Soup(response.body, "html.parser")
          lis = soup.select(
              "#facet-neighborhood-b352a7 ul li:not(.facet-truncated)"
          )
          facet_truncated = soup.select_one(".facet-truncated")
          assert len(lis) == expected_num_facets
          if not expected_ellipses:
              assert facet_truncated is None
          else:
              if expected_ellipses_url:
                  assert (
                      facet_truncated.find("a")["href"]
                      == expected_ellipses_url
                  )
              else:
                  assert facet_truncated.find("a") is None
  
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 3 for calling a global function with example usage: test_facet_more_links(max_returned_rows, path, expected_num_facets, expected_ellipses, expected_ellipses_url) without return types