jenkins-bot has submitted this change and it was merged.
Change subject: Wikibase integration tests fail on test.wikipedia ......................................................................
Wikibase integration tests fail on test.wikipedia
5d25a341 introduced tests for the UnconnectedPages generator introduced in dff802ba. Unfortunately these tests can not be run on test.wikipedia as it isn't configured correctly.
Bug: T85358 Change-Id: Idf5f2042448776eda206ad825d69809f698acfd1 --- M tests/pagegenerators_tests.py M tests/site_tests.py 2 files changed, 4 insertions(+), 0 deletions(-)
Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py index ce51bfc..cdcdb05 100755 --- a/tests/pagegenerators_tests.py +++ b/tests/pagegenerators_tests.py @@ -914,6 +914,8 @@ """Test that the ItemPage returned raises NoPage.""" if not self.site.data_repository(): raise unittest.SkipTest('Site is not using a Wikibase repository') + if self.site.hostname() == 'test.wikipedia.org': + raise unittest.SkipTest('test.wikipedia is misconfigured; T85358') cnt = 0 for page in pagegenerators.UnconnectedPageGenerator(self.site, total=5): self.assertRaises(pywikibot.NoPage, pywikibot.ItemPage.fromPage, diff --git a/tests/site_tests.py b/tests/site_tests.py index 5946d3d..444c3e0 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -818,6 +818,8 @@ """Test that the ItemPage returned raises NoPage.""" if not self.site.data_repository(): raise unittest.SkipTest('Site is not using a Wikibase repository') + if self.site.hostname() == 'test.wikipedia.org': + raise unittest.SkipTest('test.wikipedia is misconfigured; T85358') cnt = 0 for page in self.site.unconnected_pages(total=5): self.assertRaises(pywikibot.NoPage, pywikibot.ItemPage.fromPage,
pywikibot-commits@lists.wikimedia.org