diff options
Diffstat (limited to 'tests/messages/test_frontend.py')
-rw-r--r-- | tests/messages/test_frontend.py | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/tests/messages/test_frontend.py b/tests/messages/test_frontend.py index 20904a3..10325fe 100644 --- a/tests/messages/test_frontend.py +++ b/tests/messages/test_frontend.py @@ -1140,7 +1140,7 @@ msgstr[2] "" assert not os.path.isfile(mo_file), 'Expected no file at %r' % mo_file self.assertEqual("""\ catalog %s is marked as fuzzy, skipping -""" % (po_file), sys.stderr.getvalue()) +""" % po_file, sys.stderr.getvalue()) def test_compile_fuzzy_catalog(self): po_file = self._po_file('de_DE') @@ -1343,26 +1343,14 @@ def test_extract_keyword_args_384(split, arg_name): "extract -F babel-django.cfg --add-comments Translators: -o django232.pot %s ." % kwarg_text ) assert isinstance(cmdinst, extract_messages) - assert set(cmdinst.keywords.keys()) == set(( - '_', - 'dgettext', - 'dngettext', - 'gettext', - 'gettext_lazy', - 'gettext_noop', - 'N_', - 'ngettext', - 'ngettext_lazy', - 'npgettext', - 'npgettext_lazy', - 'pgettext', - 'pgettext_lazy', - 'ugettext', - 'ugettext_lazy', - 'ugettext_noop', - 'ungettext', - 'ungettext_lazy', - )) + assert set(cmdinst.keywords.keys()) == {'_', 'dgettext', 'dngettext', + 'gettext', 'gettext_lazy', + 'gettext_noop', 'N_', 'ngettext', + 'ngettext_lazy', 'npgettext', + 'npgettext_lazy', 'pgettext', + 'pgettext_lazy', 'ugettext', + 'ugettext_lazy', 'ugettext_noop', + 'ungettext', 'ungettext_lazy'} @pytest.mark.parametrize("kwarg,expected", [ @@ -1384,7 +1372,7 @@ def test_extract_distutils_keyword_arg_388(kwarg, expected): assert set(cmdinst.keywords.keys()) == set(expected) # Test the comma-separated comment argument while we're at it: - assert set(cmdinst.add_comments) == set(("Bar", "Foo")) + assert set(cmdinst.add_comments) == {"Bar", "Foo"} def test_update_catalog_boolean_args(): |