Browse Source

LANGUAGE_CODE should contain hyphens, not underscores

NeKit 8 years ago
parent
commit
5116b5ce89
1 changed files with 2 additions and 2 deletions
  1. 2 2
      misago/core/tests/test_views.py

+ 2 - 2
misago/core/tests/test_views.py

@@ -5,12 +5,12 @@ from django.test import TestCase
 class MomentJSCatalogViewTests(TestCase):
 class MomentJSCatalogViewTests(TestCase):
     def test_moment_js_catalog_view_returns_200(self):
     def test_moment_js_catalog_view_returns_200(self):
         """moment.js catalog view has no show-stoppers"""
         """moment.js catalog view has no show-stoppers"""
-        with self.settings(LANGUAGE_CODE='en_us'):
+        with self.settings(LANGUAGE_CODE='en-us'):
             response = self.client.get('/moment-i18n.js')
             response = self.client.get('/moment-i18n.js')
             self.assertEqual(response.status_code, 200)
             self.assertEqual(response.status_code, 200)
             self.assertEqual(response.content, b"")
             self.assertEqual(response.content, b"")
 
 
-        with self.settings(LANGUAGE_CODE='pl_pl'):
+        with self.settings(LANGUAGE_CODE='pl-pl'):
             response = self.client.get('/moment-i18n.js')
             response = self.client.get('/moment-i18n.js')
             self.assertContains(response, "// locale : polish (pl)")
             self.assertContains(response, "// locale : polish (pl)")