From 2cfc78edac69ad400ba164cc3dd1e5e3345b05e0 Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Thu, 21 May 2015 11:36:23 -0700 Subject: [PATCH] Fix util.order_by_name test. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Électrik sorts last because it has an accent now. --- pokedex/tests/test_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokedex/tests/test_util.py b/pokedex/tests/test_util.py index 3e7842b..7672e3f 100644 --- a/pokedex/tests/test_util.py +++ b/pokedex/tests/test_util.py @@ -38,7 +38,7 @@ def test_types_french_order(session): types = session.query(tables.Type).filter(tables.Type.id < 10000) 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[-1].name_map[french] == 'Vol', types[-1].name_map[french] + assert types[-1].name_map[french] == u'Électrik', types[-1].name_map[french] @parametrize('id', range(1, 10)) def test_get_pokemon_id(session, id):