tests.wikibase_edit_tests module#
Tests for editing Wikibase items.
Tests which should fail should instead be in the TestWikibaseSaveTest class in edit_failiure_tests.py
- class tests.wikibase_edit_tests.TestWikibaseAddClaimToExisting(*args, **kwargs)[source]#
Bases:
RequireLoginMixin
,SiteWriteMixin
,CheckHostnameMixin
,WikibaseTestCase
Run wikibase write tests for claims.
- abstract_class = False#
- code = 'test'#
- family = 'wikidata'#
- login = True#
- net = True#
- site = True#
- sites = {'wikidata:test': {'code': 'test', 'family': 'wikidata'}}#
- wikibase = True#
- write = True#
- class tests.wikibase_edit_tests.TestWikibaseDataSiteWbsetActions(*args, **kwargs)[source]#
Bases:
RequireLoginMixin
,SiteWriteMixin
,CheckHostnameMixin
,WikibaseTestCase
Run general wikibase write tests.
- abstract_class = False#
- code = 'test'#
- family = 'wikidata'#
- login = True#
- net = True#
- site = True#
- sites = {'wikidata:test': {'code': 'test', 'family': 'wikidata'}}#
- wikibase = True#
- write = True#
- class tests.wikibase_edit_tests.TestWikibaseMakeClaim(*args, **kwargs)[source]#
Bases:
RequireLoginMixin
,SiteWriteMixin
,CheckHostnameMixin
,WikibaseTestCase
Run wikibase write tests for claims.
- abstract_class = False#
- code = 'test'#
- family = 'wikidata'#
- login = True#
- net = True#
- site = True#
- sites = {'wikidata:test': {'code': 'test', 'family': 'wikidata'}}#
- wikibase = True#
- write = True#
- class tests.wikibase_edit_tests.TestWikibaseRemoveQualifier(*args, **kwargs)[source]#
Bases:
RequireLoginMixin
,SiteWriteMixin
,CheckHostnameMixin
,WikibaseTestCase
Run wikibase write tests to remove qualifiers.
- abstract_class = False#
- code = 'test'#
- family = 'wikidata'#
- login = True#
- net = True#
- site = True#
- sites = {'wikidata:test': {'code': 'test', 'family': 'wikidata'}}#
- wikibase = True#
- write = True#
- class tests.wikibase_edit_tests.TestWikibaseWriteGeneral(*args, **kwargs)[source]#
Bases:
RequireLoginMixin
,SiteWriteMixin
,CheckHostnameMixin
,WikibaseTestCase
Run general wikibase write tests.
- abstract_class = False#
- code = 'test'#
- family = 'wikidata'#
- login = True#
- net = True#
- site = True#
- sites = {'wikidata:test': {'code': 'test', 'family': 'wikidata'}}#
- test_add_claim_with_qualifier()[source]#
Test adding a claim with a qualifier to an item and a property.
- test_edit_entity_new_property()[source]#
Test creating a new property using
PropertyPage.editEntity
.
- wikibase = True#
- write = True#