Skip to content

Commit

Permalink
[tests] mark tests as expecte4dFailure until underlying issue is solved
Browse files Browse the repository at this point in the history
Bug: T368879
Change-Id: I62ca216e36fe9981b693ff3003b09d9d1fa523b4
  • Loading branch information
xqt committed Jul 1, 2024
1 parent ec6e239 commit b584e3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/pagegenerators_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ def _get_council_page(self):
site = self.get_site()
return pywikibot.Page(site, 'Q37470')

@unittest.expectedFailure # T368879
def test_valid_qualifiers(self):
"""Test ItemClaimFilterPageGenerator using valid qualifiers."""
qualifiers = {
Expand All @@ -849,6 +850,7 @@ def test_valid_qualifiers(self):
self._simple_claim_test('P463', self._get_council_page(), qualifiers,
True)

@unittest.expectedFailure # T368879
def test_invalid_qualifiers(self):
"""Test ItemClaimFilterPageGenerator with invalid qualifiers."""
qualifiers = {
Expand All @@ -859,6 +861,7 @@ def test_invalid_qualifiers(self):
self._simple_claim_test('P463', self._get_council_page(), qualifiers,
False)

@unittest.expectedFailure # T368879
def test_nonexisting_qualifiers(self):
"""
Test ItemClaimFilterPageGenerator on sample page.
Expand All @@ -874,18 +877,21 @@ def test_nonexisting_qualifiers(self):
self._simple_claim_test('P463', self._get_council_page(), qualifiers,
False)

@unittest.expectedFailure # T368879
def test_no_qualifiers(self):
"""Test ItemClaimFilterPageGenerator without qualifiers."""
self._simple_claim_test('P474', '+91', None, True)
self._simple_claim_test('P463', 'Q37470', None, True)
self._simple_claim_test('P1334', '28,97.4,0.1', None, True)
self._simple_claim_test('P1334', '28,96,0.01', None, False)

@unittest.expectedFailure # T368879
def test_negative_filter(self):
"""Test negative ItemClaimFilterPageGenerator."""
self._simple_claim_test('P463', 'Q37470', None, False, True)
self._simple_claim_test('P463', 'Q37471', None, True, True)

@unittest.expectedFailure # T368879
def test_item_from_page(self):
"""Test ItemPage can be obtained form Page."""
site = pywikibot.Site('en', 'wikipedia')
Expand Down Expand Up @@ -1497,6 +1503,7 @@ def test_onlyifnot(self):
self.assertIsNotNone(gen)
self.assertIsEmpty(set(gen))

@unittest.expectedFailure # T368879
def test_onlyif_qualifiers(self):
"""Test -onlyif with qualifiers."""
gf = pagegenerators.GeneratorFactory(site=self.site)
Expand Down

0 comments on commit b584e3b

Please sign in to comment.