Page MenuHomePhabricator

TestCategoryObject.test_redirects() tests of category_tests faily
Closed, ResolvedPublic

Description

16:25:53 FAIL: test_redirects (tests.category_tests.TestCategoryObject)
16:25:53 Test the redirects method.
16:25:53 ----------------------------------------------------------------------
16:25:53 Traceback (most recent call last):
16:25:53   File "/src/tests/category_tests.py", line 187, in test_redirects
16:25:53     self.assertIn('{{title year}}', cat3.text)
16:25:53 AssertionError: '{{title year}}' not found in '{{Category redirect|2021 establishments in Odisha}}'

The reason was this change.

Event Timeline

Xqt triaged this task as High priority.Jun 18 2023, 2:42 PM

Change 930936 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [fix] Fix TestCategoryObject.test_redirects() tests

https://gerrit.wikimedia.org/r/930936

Change 930936 merged by jenkins-bot:

[pywikibot/core@master] [fix] Fix TestCategoryObject.test_redirects() tests

https://gerrit.wikimedia.org/r/930936

Xqt claimed this task.