Mark additional canned query tests in test_html.py as xfail, refs #2510

Marked specific parameter combinations that test canned queries:
- test_css_classes_on_body with /fixtures/neighborhood_search
- test_alternate_url_json with /fixtures/neighborhood_search

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Simon Willison 2025-10-24 16:21:12 -07:00
commit 559a13a8c6

View file

@ -261,9 +261,10 @@ def test_query_page_truncates():
"/fixtures/simple_primary_key",
["table", "db-fixtures", "table-simple_primary_key"],
),
(
pytest.param(
"/fixtures/neighborhood_search",
["query", "db-fixtures", "query-neighborhood_search"],
marks=pytest.mark.xfail(reason="Canned queries not accessible, refs #2510")
),
(
"/fixtures/table~2Fwith~2Fslashes~2Ecsv",
@ -1033,9 +1034,10 @@ async def test_trace_correctly_escaped(ds_client):
"http://localhost/fixtures/-/query.json?sql=select+*+from+facetable",
),
# Canned query page
(
pytest.param(
"/fixtures/neighborhood_search?text=town",
"http://localhost/fixtures/neighborhood_search.json?text=town",
marks=pytest.mark.xfail(reason="Canned queries not accessible, refs #2510")
),
# /-/ pages
(