From 7aa50d2293e0a3a28add383da89ba184059ea569 Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Thu, 21 May 2015 11:24:47 -0700 Subject: [PATCH] Tests: Fix multilang test. How did this ever work? --- pokedex/tests/test_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokedex/tests/test_schema.py b/pokedex/tests/test_schema.py index ebfd3e0..2288ac9 100644 --- a/pokedex/tests/test_schema.py +++ b/pokedex/tests/test_schema.py @@ -108,7 +108,7 @@ def test_i18n_table_creation(): sess.commit() ### Test 1: re-fetch foo and check its attributes - foo = sess.query(Foo).params(_default_language='en').one() + foo = sess.query(Foo).params(_default_language_id=lang_en.id).one() # Dictionary of language identifiers => names assert foo.name_map[lang_en] == 'english'