mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Redesigned register_output_renderer plugin hook, closes #581
This commit is contained in:
parent
446e5de65d
commit
52c4387c7d
8 changed files with 202 additions and 20 deletions
|
|
@ -546,6 +546,8 @@ def test_table_csv_json_export_interface(app_client):
|
|||
actual = [l["href"].split("/")[-1] for l in links]
|
||||
expected = [
|
||||
"simple_primary_key.json?id__gt=2",
|
||||
"simple_primary_key.testall?id__gt=2",
|
||||
"simple_primary_key.testnone?id__gt=2",
|
||||
"simple_primary_key.csv?id__gt=2&_size=max",
|
||||
"#export",
|
||||
]
|
||||
|
|
@ -582,6 +584,8 @@ def test_csv_json_export_links_include_labels_if_foreign_keys(app_client):
|
|||
actual = [l["href"].split("/")[-1] for l in links]
|
||||
expected = [
|
||||
"facetable.json?_labels=on",
|
||||
"facetable.testall?_labels=on",
|
||||
"facetable.testnone?_labels=on",
|
||||
"facetable.csv?_labels=on&_size=max",
|
||||
"#export",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue