tests.edit_tests module#
Tests for editing pages.
- class tests.edit_tests.OAuthEditTest(*args, **kwargs)[source]#
Bases:
RequireLoginMixin
,SiteWriteMixin
,CheckHostnameMixin
,OAuthSiteTestCase
Run edit test with OAuth enabled.
- abstract_class = False#
- code = 'test'#
- family = 'wikipedia'#
- login = True#
- net = True#
- oauth = True#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
- write = True#
- class tests.edit_tests.TestGeneralWrite(*args, **kwargs)[source]#
Bases:
RequireLoginMixin
,SiteWriteMixin
,CheckHostnameMixin
,TestCase
Run general write tests.
- abstract_class = False#
- code = 'test'#
- family = 'wikipedia'#
- login = True#
- net = True#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
- write = True#
- class tests.edit_tests.TestSiteMergeHistory(*args, **kwargs)[source]#
Bases:
RequireLoginMixin
,NeedRightsMixin
,SiteWriteMixin
,CheckHostnameMixin
,TestCase
Test history merge action.
- abstract_class = False#
- code = 'test'#
- family = 'wikipedia'#
- login = True#
- net = True#
- rights = 'mergehistory'#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
- write = True#