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.