mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Tests: Fix multilang test.
How did this ever work?
This commit is contained in:
parent
7e1817f0b2
commit
7aa50d2293
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue