/fixtures/magic_parameters demo, refs #842

pull/868/head
Simon Willison 2020-06-27 20:11:01 -07:00
rodzic 563f5a2d3a
commit 335f26a0f7
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -461,6 +461,7 @@ METADATA = {
"queries": {
"𝐜𝐢𝐭𝐢𝐞𝐬": "select id, name from facet_cities order by id limit 1;",
"pragma_cache_size": "PRAGMA cache_size;",
"magic_parameters": "select :_header_user_agent as user_agent, :_date_datetime_utc as datetime",
"neighborhood_search": {
"sql": textwrap.dedent(
"""

Wyświetl plik

@ -99,6 +99,7 @@ def test_database_page(app_client):
("/fixtures/from_hook", "from_hook"),
("/fixtures/neighborhood_search#fragment-goes-here", "Search neighborhoods"),
("/fixtures/pragma_cache_size", "pragma_cache_size"),
("/fixtures/magic_parameters", "magic_parameters"),
] == sorted(
[(a["href"], a.text) for a in queries_ul.find_all("a")], key=lambda p: p[0]
)