mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Additional test for #625
This commit is contained in:
parent
95d0dd7a1c
commit
0d4145d0f4
1 changed files with 13 additions and 0 deletions
|
|
@ -611,3 +611,16 @@ def test_other_types_of_facet_in_metadata():
|
|||
"<strong>state\n",
|
||||
):
|
||||
assert fragment in response.text
|
||||
|
||||
|
||||
def test_conflicting_facet_names_json(app_client):
|
||||
response = app_client.get(
|
||||
"/fixtures/facetable.json?_facet=created&_facet_date=created"
|
||||
"&_facet=tags&_facet_array=tags"
|
||||
)
|
||||
assert set(response.json["facet_results"].keys()) == {
|
||||
"created",
|
||||
"tags",
|
||||
"created_2",
|
||||
"tags_2",
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue