Fix exceptions raised when a lazy text is used in json dump

This commit is contained in:
Shadi Naif
2018-10-07 15:46:03 +03:00
parent c0e2fd676a
commit 4df2073376
21 changed files with 107 additions and 48 deletions

View File

@@ -1476,7 +1476,7 @@ class ContentStoreTest(ContentStoreTestCase):
resp = self.client.get_html('/home/')
self.assertContains(
resp,
'<h1 class="page-header">Studio Home</h1>',
u'<h1 class="page-header">{} Home</h1>'.format(settings.STUDIO_SHORT_NAME),
status_code=200,
html=True
)

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Tests for validate Internationalization and Module i18n service.
"""
@@ -207,7 +208,7 @@ class InternationalizationTest(ModuleStoreTestCase):
resp = self.client.get_html('/home/')
self.assertContains(resp,
'<h1 class="page-header">Studio Home</h1>',
u'<h1 class="page-header">𝓢𝓽𝓾𝓭𝓲𝓸 Home</h1>',
status_code=200,
html=True)
@@ -223,7 +224,7 @@ class InternationalizationTest(ModuleStoreTestCase):
)
self.assertContains(resp,
'<h1 class="page-header">Studio Home</h1>',
u'<h1 class="page-header">𝓢𝓽𝓾𝓭𝓲𝓸 Home</h1>',
status_code=200,
html=True)