Update facet tests

This commit is contained in:
Simon Willison 2020-02-12 22:24:05 -08:00
commit 217c2969cf
3 changed files with 36 additions and 36 deletions

View file

@ -1319,8 +1319,8 @@ def test_page_size_matching_max_returned_rows(
{
"state": {
"name": "state",
"hideable": True,
"type": "column",
"hideable": True,
"toggle_url": "/fixtures/facetable.json?_facet=city_id",
"results": [
{
@ -1349,8 +1349,8 @@ def test_page_size_matching_max_returned_rows(
},
"city_id": {
"name": "city_id",
"hideable": True,
"type": "column",
"hideable": True,
"toggle_url": "/fixtures/facetable.json?_facet=state",
"results": [
{
@ -1360,13 +1360,6 @@ def test_page_size_matching_max_returned_rows(
"toggle_url": "_facet=state&_facet=city_id&city_id=1",
"selected": False,
},
{
"value": 2,
"label": "Los Angeles",
"count": 4,
"toggle_url": "_facet=state&_facet=city_id&city_id=2",
"selected": False,
},
{
"value": 3,
"label": "Detroit",
@ -1374,6 +1367,13 @@ def test_page_size_matching_max_returned_rows(
"toggle_url": "_facet=state&_facet=city_id&city_id=3",
"selected": False,
},
{
"value": 2,
"label": "Los Angeles",
"count": 4,
"toggle_url": "_facet=state&_facet=city_id&city_id=2",
"selected": False,
},
{
"value": 4,
"label": "Memnonia",