diff options
Diffstat (limited to 'tests/units/db')
-rwxr-xr-x | tests/units/db/index.py | 2 | ||||
-rwxr-xr-x | tests/units/db/routes.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/units/db/index.py b/tests/units/db/index.py index 45dcbb8..ef6df53 100755 --- a/tests/units/db/index.py +++ b/tests/units/db/index.py @@ -567,7 +567,7 @@ class IndexTest(tests.Test): self.assertEqual(1, len(commits)) def test_SortLocalizedProps(self): - toolkit._default_lang = 'default_lang' + toolkit._default_langs = ['default_lang'] current_lang = locale.getdefaultlocale()[0].replace('_', '-') db = Index({'prop': IndexedProperty('prop', 1, 'A', localized=True)}) diff --git a/tests/units/db/routes.py b/tests/units/db/routes.py index b6e0c11..4dd0fea 100755 --- a/tests/units/db/routes.py +++ b/tests/units/db/routes.py @@ -384,7 +384,7 @@ class RoutesTest(tests.Test): self.assertEqual(-1, self.call('GET', path=['testdocument', guid, 'prop'])) def test_LocalizedSet(self): - toolkit._default_lang = 'en' + toolkit._default_langs = ['en'] class TestDocument(db.Resource): @@ -449,7 +449,7 @@ class RoutesTest(tests.Test): }, }) - toolkit._default_lang = 'en' + toolkit._default_langs = ['en'] self.assertEqual( {'localized_prop': 'value_en'}, @@ -494,7 +494,7 @@ class RoutesTest(tests.Test): [{'localized_prop': 'value_en'}], self.call('GET', path=['testdocument'], accept_language=['foo', 'fr', 'za'], reply=['localized_prop'])['result']) - toolkit._default_lang = 'foo' + toolkit._default_langs = ['foo'] fallback_lang = sorted(['ru', 'es', 'en'])[0] self.assertEqual( |