jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/930936 )
Change subject: [fix] Fix TestCategoryObject.test_redirects() tests ......................................................................
[fix] Fix TestCategoryObject.test_redirects() tests
Bug: T339819 Change-Id: I4bafab1f0e9c12d693c3f38c5427e3e56bcf81cf --- M tests/category_tests.py 1 file changed, 13 insertions(+), 2 deletions(-)
Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/category_tests.py b/tests/category_tests.py index bb27d10..25d0030 100755 --- a/tests/category_tests.py +++ b/tests/category_tests.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Tests for the Category class.""" # -# (C) Pywikibot team, 2014-2022 +# (C) Pywikibot team, 2014-2023 # # Distributed under the terms of the MIT license. # @@ -183,8 +183,9 @@
# Invalid title case cat3 = pywikibot.Category(site, '2021 establishments in Orissa') + cat3.text = ('{{Category redirect|' + '{{title year}} establishments in Odisha}}') cat4 = pywikibot.Category(site, '2021 establishments in Odisha') - self.assertIn('{{title year}}', cat3.text) self.assertTrue(cat3.isCategoryRedirect()) self.assertFalse(cat4.isCategoryRedirect()) tgt = cat3.getCategoryRedirectTarget()
pywikibot-commits@lists.wikimedia.org