Annotate test_i18n.py.

This commit is contained in:
Tim Abbott 2016-07-29 15:31:35 -07:00
parent 3839a25c74
commit 55611cd21a
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,7 @@ class TranslationTestCase(AuthedTestCase):
class JsonTranslationTestCase(AuthedTestCase):
@mock.patch('zerver.lib.request._')
def test_json_error(self, mock_gettext):
# type: (Any) -> None
dummy_value = "Some other language '%s'"
mock_gettext.return_value = dummy_value
@ -84,6 +85,7 @@ class JsonTranslationTestCase(AuthedTestCase):
@mock.patch('zerver.views._')
def test_jsonable_error(self, mock_gettext):
# type: (Any) -> None
dummy_value = "Some other language"
mock_gettext.return_value = dummy_value
@ -97,6 +99,7 @@ class JsonTranslationTestCase(AuthedTestCase):
class FrontendRegexTestCase(TestCase):
def test_regexes(self):
# type: () -> None
command = makemessages.Command()
data = [