tests.dry_api_tests module#
API tests which do not interact with a site.
- class tests.dry_api_tests.DryCachedRequestTests(*args, **kwargs)[source]#
Bases:
DisconnectedSiteMixin
,SiteAttributeTestCase
Test CachedRequest using real site objects.
- abstract_class = False#
- dry = True#
- site = True#
- sites = {'altsite': {'code': 'de', 'family': 'wikipedia'}, 'basesite': {'code': 'en', 'family': 'wikipedia'}}#
- class tests.dry_api_tests.DryMimeTests(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,TestCase
Test MIME request handling without a real site.
- abstract_class = False#
- class tests.dry_api_tests.DryWriteAssertTests(*args, **kwargs)[source]#
Bases:
DisconnectedSiteMixin
,DefaultDrySiteTestCase
Test client site write assert.
- abstract_class = False#
- code = 'test'#
- dry = True#
- family = 'wikipedia'#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
- class tests.dry_api_tests.MockCachedRequestKeyTests(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,TestCase
Test CachedRequest using moke site objects.
- abstract_class = False#
- class tests.dry_api_tests.ParamInfoDictTests(*args, **kwargs)[source]#
Bases:
DisconnectedSiteMixin
,DefaultDrySiteTestCase
Test extracting data from the ParamInfo.
- abstract_class = False#
- code = 'test'#
- dry = True#
- edit_action_param_data = {'name': 'edit', 'path': 'edit'}#
- family = 'wikipedia'#
- prop_info_param_data = {'classname': 'ApiQueryInfo', 'group': 'prop', 'name': 'info', 'parameters': [{'name': 'prop', 'multi': '', 'limit': 500, 'lowlimit': 50, 'highlimit': 500, 'type': ['protection', 'talkid', 'watched', 'watchers', 'notificationtimestamp', 'subjectid', 'url', 'readable', 'preload', 'displaytitle']}, {'name': 'token', 'deprecated': '', 'multi': '', 'limit': 500, 'lowlimit': 50, 'highlimit': 500, 'type': ['edit', 'delete', 'protect', 'move', 'block', 'unblock', 'email', 'import', 'watch']}, {'name': 'continue', 'type': 'string'}], 'path': 'query+info', 'prefix': 'in', 'querytype': 'prop'}#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
- class tests.dry_api_tests.QueryGenTests(*args, **kwargs)[source]#
Bases:
DisconnectedSiteMixin
,DefaultDrySiteTestCase
Test QueryGenerator with a real site.
- abstract_class = False#
- code = 'test'#
- dry = True#
- family = 'wikipedia'#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#