Skip to content

Commit

Permalink
[#959] Add double check for example_itranslation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joetsoi committed Jun 16, 2015
1 parent 4bb5b42 commit 0e9dfaa
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion ckanext/example_itranslation/tests/test_plugin.py
Expand Up @@ -22,7 +22,14 @@ def test_translated_string_in_extensions_templates(self):
locale='fr'),
)
assert_true('This is a itranslated string' in response.body)
assert_false('This is a untranslated string' in response.body)
assert_false('This is an untranslated string' in response.body)

# double check the untranslated strings
response = app.get(
url=plugins.toolkit.url_for(controller='home', action='index'),
)
assert_true('This is an untranslated string' in response.body)
assert_false('This is a itranslated string' in response.body)

def test_translated_string_in_core_templates(self):
app = self._get_test_app()
Expand All @@ -32,3 +39,10 @@ def test_translated_string_in_core_templates(self):
)
assert_true('Overwritten string in ckan.mo' in response.body)
assert_false('Connexion' in response.body)

# double check the untranslated strings
response = app.get(
url=plugins.toolkit.url_for(controller='home', action='index'),
)
assert_true('Log in' in response.body)
assert_false('Overwritten string in ckan.mo' in response.body)

0 comments on commit 0e9dfaa

Please sign in to comment.