File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727from babel import __version__ as VERSION
2828from babel .dates import format_datetime
2929from babel .messages import frontend , Catalog
30- from babel .messages .frontend import CommandLineInterface , extract_messages
30+ from babel .messages .frontend import CommandLineInterface , extract_messages , update_catalog
3131from babel .util import LOCALTZ
3232from babel .messages .pofile import read_po , write_po
3333from babel ._compat import StringIO
@@ -1291,3 +1291,12 @@ def test_extract_keyword_args_384(split):
12911291 'ungettext' ,
12921292 'ungettext_lazy' ,
12931293 ))
1294+
1295+
1296+ def test_update_catalog_boolean_args ():
1297+ cmdinst = configure_cli_command ("update --no-wrap -N --ignore-obsolete --previous -i foo -o foo -l en" )
1298+ assert isinstance (cmdinst , update_catalog )
1299+ assert cmdinst .no_wrap is True
1300+ assert cmdinst .no_fuzzy_matching is True
1301+ assert cmdinst .ignore_obsolete is True
1302+ assert cmdinst .previous is False # Mutually exclusive with no_fuzzy_matching
You can’t perform that action at this time.
0 commit comments