Build Update for wikimedia/pywikibot-core
-------------------------------------
Build: #3441
Status: Errored
Duration: 1 hour, 32 minutes, and 17 seconds
Commit: 8043be9 (master)
Author: xqt
Message: [bugfix] re-enable nose34 test
nosetest fails due to parser error:
pip._vendor.packaging.requirements.InvalidRequirement:
Invalid requirement, parse error at "'# Python'"
Removing the comment should solve it
Bug: T135106
Change-Id: I302c11c5716dda7df4c68feaf0623fdfcdbbc51a
View the changeset: https://github.com/wikimedia/pywikibot-core/compare/54f6fcdc24e7...8043be91…
View the full build log and details: https://travis-ci.org/wikimedia/pywikibot-core/builds/129966035
--
You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications
Build Update for wikimedia/pywikibot-core
-------------------------------------
Build: #3437
Status: Errored
Duration: 1 hour, 31 minutes, and 41 seconds
Commit: 8816913 (master)
Author: xqt
Message: [bugfix] fix tests for wikidata
- wikidata:test:Wikidata:Main_Page does not has a Wikidata item.
Test that ItemPage.fromPage(page) raises a NoPage exception
- additional tests added.
Bug: T134655
Change-Id: I3e998995972d2cc0f785604c4c2688a61f6cd047
View the changeset: https://github.com/wikimedia/pywikibot-core/compare/71c0289f6656...8816913e…
View the full build log and details: https://travis-ci.org/wikimedia/pywikibot-core/builds/128562152
--
You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications
jenkins-bot has submitted this change and it was merged.
Change subject: [bugfix] fix tests for wikidata
......................................................................
[bugfix] fix tests for wikidata
- wikidata:test:Wikidata:Main_Page does not has a Wikidata item.
Test that ItemPage.fromPage(page) raises a NoPage exception
- additional tests added.
Bug: T134655
Change-Id: I3e998995972d2cc0f785604c4c2688a61f6cd047
---
M tests/wikibase_tests.py
1 file changed, 17 insertions(+), 0 deletions(-)
Approvals:
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py
index 7b747e3..6cfceaf 100644
--- a/tests/wikibase_tests.py
+++ b/tests/wikibase_tests.py
@@ -1131,14 +1131,31 @@
},
}
+ def test_own_repository(self, key):
+ """Test that a data repository family is its own repository."""
+ site = self.get_site(key)
+ self.assertEqual(site, site.data_repository())
+ self.assertTrue(site.is_data_repository)
+
def test_own_client(self, key):
"""Test that a data repository family can be its own client."""
site = self.get_site(key)
+ self.assertTrue(site.has_data_repository)
+ def test_item_exists(self):
+ """Test that a ItemPage exists for wikidata:wikidata."""
+ site = self.get_site('wikidata')
page = pywikibot.Page(site, 'Wikidata:Main Page')
item = pywikibot.ItemPage.fromPage(page)
self.assertEqual(item.site, site)
+ def test_item_not_exists(self):
+ """Test that a ItemPage does not exists for test:wikidata."""
+ site = self.get_site('wikidatatest')
+ page = pywikibot.Page(site, 'Wikidata:Main Page')
+ with self.assertRaises(pywikibot.NoPage):
+ pywikibot.ItemPage.fromPage(page)
+
class TestUnconnectedClient(TestCase):
--
To view, visit https://gerrit.wikimedia.org/r/287424
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3e998995972d2cc0f785604c4c2688a61f6cd047
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>