Page MenuHomePhabricator

test_protectedpages_create is failing on enwiki
Closed, DuplicatePublic

Description

________________ TestSiteGenerators.test_protectedpages_create _________________
self = <tests.site_tests.TestSiteGenerators testMethod=test_protectedpages_create>
    def test_protectedpages_create(self):
        """Test that protectedpages returns protected page titles."""
        if self.site.mw_version < '1.15':
            raise unittest.SkipTest('requires v1.15+')
    
        pages = list(self.get_site().protectedpages(type='create', total=10))
        for page in pages:
            self.assertFalse(
                page.exists(),
                '\n{page} does unexpectedly exist on site {page.site}'
>               .format(page=page))
E           AssertionError: 
E           [[en:Audrey Geisel]] does unexpectedly exist on site wikipedia:en
tests/site_tests.py:996: AssertionError

Event Timeline

The page has been revivied:
https://en.wikipedia.org/w/index.php?title=Special:Log&page=Audrey+Geisel:

  • 00:27, 23 February 2019 Enigmaman (talk | contribs) restored page Audrey Geisel (14 revisions) (restoring legitimate edits) (thank)

APISite.protectedpages depends on protectedtitles API. I don't understand why it is returning an unprotected title here.