Skip to content

Commit

Permalink
tests: Re-enable RC-tests on wikidata
Browse files Browse the repository at this point in the history
Bug: T245989
Change-Id: I3e274e512e797512390176cc9b151a62b2d3380d
  • Loading branch information
xqt committed Jan 5, 2025
1 parent d917751 commit 20cd1df
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/site_generators_tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""Tests for generators of the site module."""
#
# (C) Pywikibot team, 2008-2024
# (C) Pywikibot team, 2008-2025
#
# Distributed under the terms of the MIT license.
#
Expand Down Expand Up @@ -1046,12 +1046,9 @@ def test_flags(self):
for change in mysite.recentchanges(redirect=False, total=5):
self.assertIsInstance(change, dict)
self.assertNotIn('redirect', change)

# Subtest timeouts on Wikidata due to upstream issue, see T245989
if mysite.sitename != 'wikidata:wikidata':
for change in mysite.recentchanges(redirect=True, total=5):
self.assertIsInstance(change, dict)
self.assertIn('redirect', change)
for change in mysite.recentchanges(redirect=True, total=5):
self.assertIsInstance(change, dict)
self.assertIn('redirect', change)

def test_tag_filter(self):
"""Test the site.recentchanges() with tag filter."""
Expand Down

0 comments on commit 20cd1df

Please sign in to comment.