Skip to content

Commit

Permalink
[tests] Skip tests on infogalactic.com
Browse files Browse the repository at this point in the history
Bug: T358986
Change-Id: I3fbd66a2266c0a50de139777be3665fa83f9d444
  • Loading branch information
xqt committed Mar 3, 2024
1 parent 39f40cb commit 16f1b12
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/logentries_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import pywikibot
from pywikibot.exceptions import HiddenKeyError, NoMoveTargetError
from pywikibot.family import AutoFamily
# from pywikibot.family import AutoFamily (T358986)
from pywikibot.logentries import (
LogEntryFactory,
OtherLogEntry,
Expand Down Expand Up @@ -52,12 +52,13 @@ class TestLogentriesBase(TestCase):
'code': 'en',
'target': None,
},
'old': {
'family': AutoFamily('infogalactic',
'https://infogalactic.com/info/Main_Page'),
'code': 'en',
'target': None,
}
# Deactivated due to T358986
# 'old': {
# 'family': AutoFamily('infogalactic',
# 'https://infogalactic.com/info/Main_Page'),
# 'code': 'en',
# 'target': None,
# }
}

def _get_logentry(self, logtype):
Expand Down Expand Up @@ -255,6 +256,7 @@ def test_moved_target(self, key):
# main page was moved back again, we test it.
self.assertEqual(mainpage, target.moved_target())

@unittest.expectedFailure # T358986
def test_moved_target_fail_old(self):
"""Test moved_target method failing on older wiki."""
site = self.get_site('old')
Expand Down

0 comments on commit 16f1b12

Please sign in to comment.