File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -447,6 +447,23 @@ def test_extract_all_comments(self):
447447 ''' ), args = (arg ,), raw = True )
448448 self .assertIn ('#. Translator comment' , data )
449449
450+ def test_comments_with_multiple_tags (self ):
451+ """
452+ Test that multiple --add-comments tags can be specified.
453+ """
454+ for arg in ('--add-comments={}' , '-c{}' ):
455+ with self .subTest (arg = arg ):
456+ args = (arg .format ('foo:' ), arg .format ('bar:' ))
457+ data = self .extract_from_str (dedent ('''\
458+ # foo: comment
459+ _("foo")
460+
461+ # bar: comment
462+ _("bar")
463+ ''' ), args = args , raw = True )
464+ self .assertIn ('#. foo: comment' , data )
465+ self .assertIn ('#. bar: comment' , data )
466+
450467
451468def update_POT_snapshots ():
452469 for input_file in DATA_DIR .glob ('*.py' ):
You can’t perform that action at this time.
0 commit comments