Test that the --add-comments option without an explicit tag extracts all translator comments.
(self)
| 446 | ) |
| 447 | |
| 448 | def test_extract_all_comments(self): |
| 449 | """ |
| 450 | Test that the --add-comments option without an |
| 451 | explicit tag extracts all translator comments. |
| 452 | """ |
| 453 | for arg in ('--add-comments', '-c'): |
| 454 | with self.subTest(arg=arg): |
| 455 | data = self.extract_from_str(dedent('''\ |
| 456 | # Translator comment |
| 457 | _("foo") |
| 458 | '''), args=(arg,), raw=True) |
| 459 | self.assertIn('#. Translator comment', data) |
| 460 | |
| 461 | def test_comments_with_multiple_tags(self): |
| 462 | """ |
nothing calls this directly
no test coverage detected