mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Test and docs for ?_facet_size=max, refs #1337
This commit is contained in:
parent
7e983fede6
commit
4545120c92
2 changed files with 7 additions and 1 deletions
|
|
@ -399,3 +399,9 @@ async def test_facet_size():
|
|||
)
|
||||
data4 = response4.json()
|
||||
assert len(data4["facet_results"]["city"]["results"]) == 20
|
||||
# Test _facet_size=max
|
||||
response5 = await ds.client.get(
|
||||
"/test_facet_size/neighbourhoods.json?_facet_size=max&_facet=city"
|
||||
)
|
||||
data5 = response5.json()
|
||||
assert len(data5["facet_results"]["city"]["results"]) == 20
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue