Reliable sort order for facets in Python 3.5, fixing test - refs #255

This commit is contained in:
Simon Willison 2018-05-16 07:43:13 -07:00 committed by Simon Willison
commit b263da78e3
3 changed files with 4 additions and 4 deletions

View file

@ -210,8 +210,8 @@ def test_facets_persist_through_filter_form(app_client):
inputs = Soup(response.body, 'html.parser').find('form').findAll('input')
hiddens = [i for i in inputs if i['type'] == 'hidden']
assert [
('_facet', 'planet_int'),
('_facet', 'city_id'),
('_facet', 'planet_int'),
] == [
(hidden['name'], hidden['value']) for hidden in hiddens
]