Tests: Fix util.order_by_name test.

Électrik sorts last because it has an accent now.
This commit is contained in:
Andrew Ekstedt 2015-05-21 11:36:23 -07:00
parent 7aa50d2293
commit 7048bac38e

View file

@ -38,7 +38,7 @@ def test_types_french_order(session):
types = session.query(tables.Type).filter(tables.Type.id < 10000) types = session.query(tables.Type).filter(tables.Type.id < 10000)
types = list(util.order_by_name(types, tables.Type, language=french)) types = list(util.order_by_name(types, tables.Type, language=french))
assert types[0].name_map[french] == 'Acier', types[0].name_map[french] assert types[0].name_map[french] == 'Acier', types[0].name_map[french]
assert types[-1].name_map[french] == 'Vol', types[-1].name_map[french] assert types[-1].name_map[french] == 'Électrik', types[-1].name_map[french]
@parametrize('id', range(1, 10)) @parametrize('id', range(1, 10))
def test_get_pokemon_id(session, id): def test_get_pokemon_id(session, id):