jenkins-bot has submitted this change and it was merged.
Change subject: Add cc test for replaceDeprecatedTemplates ......................................................................
Add cc test for replaceDeprecatedTemplates
Change-Id: I0a5bed50f4d6f972635baff2525769c44ff55a49 --- M tests/cosmetic_changes_tests.py 1 file changed, 14 insertions(+), 0 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/cosmetic_changes_tests.py b/tests/cosmetic_changes_tests.py index c937f20..4144a33 100644 --- a/tests/cosmetic_changes_tests.py +++ b/tests/cosmetic_changes_tests.py @@ -99,6 +99,20 @@ self.assertEqual(':* Foo bar', self.cct.putSpacesInLists(':*Foo bar'))
+ def test_replaceDeprecatedTemplates(self): + """Test replaceDeprecatedTemplates method.""" + self.assertEqual( + '{{Quellen fehlen }}' + '{{Belege fehlen| }}' + '{{Belege fehlen|foo}}' + '{{Quellen_fehlen|foo}}', + self.cct.replaceDeprecatedTemplates( + '{{Quellen fehlen }}' + '{{Quellen fehlen| }}' + '{{Quellen fehlen|foo}}' + '{{Quellen_fehlen|foo}}' + )) + def test_fixSyntaxSave(self): """Test fixSyntaxSave method.""" # necessary as the fixer needs the article path to fix it