jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/626878 )
Change subject: Implement test stubs for remaning collection classes
......................................................................
Implement test stubs for remaning collection classes
Change-Id: Ib55a2e043c9495acdd789a7db7f0df64b9df5401
---
M tests/wikibase_tests.py
1 file changed, 23 insertions(+), 0 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py
index 810cf41..13a028c 100644
--- a/tests/wikibase_tests.py
+++ b/tests/wikibase_tests.py
@@ -16,6 +16,7 @@
from pywikibot import pagegenerators
from pywikibot.page import (
WikibasePage, ItemPage, PropertyPage, Page, LanguageDict, AliasesDict,
+ ClaimCollection, SiteLinkCollection,
)
from pywikibot.site import Namespace, NamespacesDict
from pywikibot.tools import MediaWikiVersion, suppress_warnings
@@ -1974,6 +1975,28 @@
self._test_new_empty()
+class TestClaimCollection(DataCollectionTestCase):
+
+ """Test cases covering ClaimCollection methods."""
+
+ collection_class = ClaimCollection
+
+ def test_new_empty(self):
+ """Test that new_empty method returns empty
collection."""
+ self._test_new_empty()
+
+
+class TestSiteLinkCollection(DataCollectionTestCase):
+
+ """Test cases covering SiteLinkCollection methods."""
+
+ collection_class = SiteLinkCollection
+
+ def test_new_empty(self):
+ """Test that new_empty method returns empty
collection."""
+ self._test_new_empty()
+
+
class TestWriteNormalizeData(TestCase):
"""Test cases for routines that normalize data for writing to
Wikidata.
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/626878
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ib55a2e043c9495acdd789a7db7f0df64b9df5401
Gerrit-Change-Number: 626878
Gerrit-PatchSet: 2
Gerrit-Owner: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged