mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
/fixtures/magic_parameters demo, refs #842
This commit is contained in:
parent
563f5a2d3a
commit
335f26a0f7
2 changed files with 2 additions and 0 deletions
|
|
@ -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(
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue