jenkins-bot has submitted this change and it was merged.
Change subject: [bugfix] Fix test_translateMagicWords test ......................................................................
[bugfix] Fix test_translateMagicWords test
Bug: T132557 Change-Id: Ia845114619a40e639abdc415e37b793a1024f508 (cherry picked from commit 585a0d6d884cd5ec76f1969d2e6e40755c17b757) --- M tests/cosmetic_changes_tests.py 1 file changed, 4 insertions(+), 4 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 f864c76..8d28a3c 100644 --- a/tests/cosmetic_changes_tests.py +++ b/tests/cosmetic_changes_tests.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Test cosmetic_changes module.""" # -# (C) Pywikibot team, 2015 +# (C) Pywikibot team, 2015-2016 # # Distributed under the terms of the MIT license. # @@ -45,11 +45,11 @@ def test_translateMagicWords(self): """Test translateMagicWords method.""" self.assertEqual( - '[[File:Foo.bar|mini]]', + '[[File:Foo.bar|miniatur]]', self.cct.translateMagicWords('[[File:Foo.bar|thumb]]')) self.assertEqual( - '[[File:Foo.bar|mini]]', - self.cct.translateMagicWords('[[File:Foo.bar|miniatur]]')) + '[[File:Foo.bar|miniatur]]', + self.cct.translateMagicWords('[[File:Foo.bar|mini]]'))
def test_cleanUpLinks_pipes(self): """Test cleanUpLinks method."""
pywikibot-commits@lists.wikimedia.org