kopia lustrzana https://github.com/simonw/datasette
/fixtures/magic_parameters demo, refs #842
rodzic
563f5a2d3a
commit
335f26a0f7
|
@ -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]
|
||||
)
|
||||
|
|
Ładowanie…
Reference in New Issue