jenkins-bot has submitted this change and it was merged.
Change subject: Wikibase test fix
......................................................................
Wikibase test fix
The wikibase tests introduced recently are now failing.
They were introduced here:
Ic0e5ffd7526d71ca8d460f29ed37747a0b255930
That change passed all tests; see here:
https://travis-ci.org/wikimedia/pywikibot-core/builds/30325106
That log shows that it introduces a new warning like the following
and raised an APIError exception on an attempt to load an item.
WARNING: API warning (wbgetentities):
Unrecognized value for parameter 'sites': testwikidatawiki
That warning appears until travis build 1078, and then appears in 1079
https://travis-ci.org/wikimedia/pywikibot-core/jobs/30562987
https://travis-ci.org/wikimedia/pywikibot-core/jobs/30661149
It appears to be a server config change that has fixed that
API warning and APIError exception, and now the exception is NoPage.
Change-Id: I3d1655b53bb11236545502634dad667ecef74d53
---
M tests/wikibase_tests.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py
index 72381fb..37c9553 100644
--- a/tests/wikibase_tests.py
+++ b/tests/wikibase_tests.py
@@ -314,7 +314,7 @@
def test_item_save(self):
self.wdp = pywikibot.ItemPage(wikidatatest, 'Q6')
item = self.wdp.data_item()
- self.assertRaises(APIError, item.title)
+ self.assertRaises(pywikibot.NoPage, item.title)
self.assertRaises(pywikibot.PageNotSaved, self.wdp.save)
self.wdp.previousRevision()
self.assertEquals(self.wdp.langlinks(), [])
--
To view, visit
https://gerrit.wikimedia.org/r/149255
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3d1655b53bb11236545502634dad667ecef74d53
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>