kopia lustrzana https://github.com/simonw/datasette
Sort keys to past tests in Python 3.5
rodzic
5ef3b2d6c9
commit
182a3017c2
|
@ -638,6 +638,7 @@ class ManyToManyFacet(Facet):
|
||||||
"value": str(row["value"]),
|
"value": str(row["value"]),
|
||||||
},
|
},
|
||||||
separators=(",", ":"),
|
separators=(",", ":"),
|
||||||
|
sort_keys=True,
|
||||||
)
|
)
|
||||||
selected = ("_through", through) in args
|
selected = ("_through", through) in args
|
||||||
if selected:
|
if selected:
|
||||||
|
|
|
@ -344,14 +344,14 @@ async def test_m2m_facet_results(app_client):
|
||||||
"value": 2,
|
"value": 2,
|
||||||
"label": "Paranormal",
|
"label": "Paranormal",
|
||||||
"count": 3,
|
"count": 3,
|
||||||
"toggle_url": "http://localhost/?_facet_m2m=attraction_characteristic&_through=%7B%22table%22%3A%22roadside_attraction_characteristics%22%2C%22column%22%3A%22characteristic_id%22%2C%22value%22%3A%222%22%7D",
|
"toggle_url": "http://localhost/?_facet_m2m=attraction_characteristic&_through=%7B%22column%22%3A%22characteristic_id%22%2C%22table%22%3A%22roadside_attraction_characteristics%22%2C%22value%22%3A%222%22%7D",
|
||||||
"selected": False,
|
"selected": False,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": 1,
|
"value": 1,
|
||||||
"label": "Museum",
|
"label": "Museum",
|
||||||
"count": 2,
|
"count": 2,
|
||||||
"toggle_url": "http://localhost/?_facet_m2m=attraction_characteristic&_through=%7B%22table%22%3A%22roadside_attraction_characteristics%22%2C%22column%22%3A%22characteristic_id%22%2C%22value%22%3A%221%22%7D",
|
"toggle_url": "http://localhost/?_facet_m2m=attraction_characteristic&_through=%7B%22column%22%3A%22characteristic_id%22%2C%22table%22%3A%22roadside_attraction_characteristics%22%2C%22value%22%3A%221%22%7D",
|
||||||
"selected": False,
|
"selected": False,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Ładowanie…
Reference in New Issue