jenkins-bot has submitted this change and it was merged.
Change subject: Revert "[bugfix] fix tests for wikidata" ......................................................................
Revert "[bugfix] fix tests for wikidata"
This reverts commit 8816913e4320dbac94c0d18926803ee8f5e8d44b.
Bug: T134655 Change-Id: Ib435c5c64a3744f43aef639364dfbbd3b6712b08 --- M tests/wikibase_tests.py 1 file changed, 0 insertions(+), 17 deletions(-)
Approvals: John Vandenberg: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py index 6cfceaf..7b747e3 100644 --- a/tests/wikibase_tests.py +++ b/tests/wikibase_tests.py @@ -1131,30 +1131,13 @@ }, }
- 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):
pywikibot-commits@lists.wikimedia.org