tests.logentries_tests module#
Test logentries module.
- class tests.logentries_tests.TestLogentries(*args, **kwargs)[source]#
Bases:
CheckHostnameMixin
,TestLogentriesBase
Test general LogEntry properties.
- abstract_class = False#
- net = True#
- site = True#
- sites = {'dewp': {'code': 'de', 'family': 'wikipedia', 'target': 'Hauptseite'}, 'enwow': {'code': 'en', 'family': 'wowwiki', 'target': None}, 'old': {'code': 'en', 'family': Family("infogalactic"), 'target': None}, 'tewp': {'code': 'test', 'family': 'wikipedia', 'target': 'Main Page on wheels'}}#
- test_BlockEntry_dewp()#
Test a single logtype entry on wikipedia:de
- test_BlockEntry_enwow()#
Test a single logtype entry on wowwiki:en
- test_BlockEntry_old()#
Test a single logtype entry on infogalactic:en
- test_BlockEntry_tewp()#
Test a single logtype entry on wikipedia:test
- test_DeleteEntry_dewp()#
Test a single logtype entry on wikipedia:de
- test_DeleteEntry_enwow()#
Test a single logtype entry on wowwiki:en
- test_DeleteEntry_old()#
Test a single logtype entry on infogalactic:en
- test_DeleteEntry_tewp()#
Test a single logtype entry on wikipedia:test
- test_ImportEntry_dewp()#
Test a single logtype entry on wikipedia:de
- test_ImportEntry_enwow()#
Test a single logtype entry on wowwiki:en
- test_ImportEntry_old()#
Test a single logtype entry on infogalactic:en
- test_ImportEntry_tewp()#
Test a single logtype entry on wikipedia:test
- test_MoveEntry_dewp()#
Test a single logtype entry on wikipedia:de
- test_MoveEntry_enwow()#
Test a single logtype entry on wowwiki:en
- test_MoveEntry_old()#
Test a single logtype entry on infogalactic:en
- test_MoveEntry_tewp()#
Test a single logtype entry on wikipedia:test
- test_NewusersEntry_dewp()#
Test a single logtype entry on wikipedia:de
- test_NewusersEntry_enwow()#
Test a single logtype entry on wowwiki:en
- test_NewusersEntry_old()#
Test a single logtype entry on infogalactic:en
- test_NewusersEntry_tewp()#
Test a single logtype entry on wikipedia:test
- test_PatrolEntry_dewp()#
Test a single logtype entry on wikipedia:de
- test_PatrolEntry_enwow()#
Test a single logtype entry on wowwiki:en
- test_PatrolEntry_old()#
Test a single logtype entry on infogalactic:en
- test_PatrolEntry_tewp()#
Test a single logtype entry on wikipedia:test
- test_ProtectEntry_dewp()#
Test a single logtype entry on wikipedia:de
- test_ProtectEntry_enwow()#
Test a single logtype entry on wowwiki:en
- test_ProtectEntry_old()#
Test a single logtype entry on infogalactic:en
- test_ProtectEntry_tewp()#
Test a single logtype entry on wikipedia:test
- test_RightsEntry_dewp()#
Test a single logtype entry on wikipedia:de
- test_RightsEntry_enwow()#
Test a single logtype entry on wowwiki:en
- test_RightsEntry_old()#
Test a single logtype entry on infogalactic:en
- test_RightsEntry_tewp()#
Test a single logtype entry on wikipedia:test
- test_ThanksEntry_dewp()#
Test a single logtype entry on wikipedia:de
- test_ThanksEntry_enwow()#
Test a single logtype entry on wowwiki:en
- test_ThanksEntry_old()#
Test a single logtype entry on infogalactic:en
- test_ThanksEntry_tewp()#
Test a single logtype entry on wikipedia:test
- test_UploadEntry_dewp()#
Test a single logtype entry on wikipedia:de
- test_UploadEntry_enwow()#
Test a single logtype entry on wowwiki:en
- test_UploadEntry_old()#
Test a single logtype entry on infogalactic:en
- test_UploadEntry_tewp()#
Test a single logtype entry on wikipedia:test
- class tests.logentries_tests.TestLogentriesBase(*args, **kwargs)[source]#
Bases:
TestCase
Base class for log entry tests.
It uses the German Wikipedia for a current representation of the log entries and the test Wikipedia for the future representation. It also tests on a wiki with MW <= 1.27 to check that the module works with older wikis. It currently uses infogalacticwiki which as of this commit uses 1.27.1.
- abstract_class = True#
- sites = {'dewp': {'code': 'de', 'family': 'wikipedia', 'target': 'Hauptseite'}, 'enwow': {'code': 'en', 'family': 'wowwiki', 'target': None}, 'old': {'code': 'en', 'family': Family("infogalactic"), 'target': None}, 'tewp': {'code': 'test', 'family': 'wikipedia', 'target': 'Main Page on wheels'}}#
- class tests.logentries_tests.TestLogentriesMeta(name, bases, dct)[source]#
Bases:
MetaTestCaseClass
Test meta class for TestLogentries.
Create the new class.
- class tests.logentries_tests.TestLogentryParams(*args, **kwargs)[source]#
Bases:
CheckHostnameMixin
,TestLogentriesBase
Test LogEntry properties specific to their action.
- abstract_class = False#
- net = True#
- site = True#
- sites = {'dewp': {'code': 'de', 'family': 'wikipedia', 'target': 'Hauptseite'}, 'enwow': {'code': 'en', 'family': 'wowwiki', 'target': None}, 'old': {'code': 'en', 'family': Family("infogalactic"), 'target': None}, 'tewp': {'code': 'test', 'family': 'wikipedia', 'target': 'Main Page on wheels'}}#
- test_block_entry_dewp()#
Test BlockEntry methods on wikipedia:de
- test_block_entry_enwow()#
Test BlockEntry methods on wowwiki:en
- test_block_entry_old()#
Test BlockEntry methods on infogalactic:en
- test_block_entry_tewp()#
Test BlockEntry methods on wikipedia:test
- test_move_entry_dewp()#
Test MoveEntry methods on wikipedia:de
- test_move_entry_enwow()#
Test MoveEntry methods on wowwiki:en
- test_move_entry_old()#
Test MoveEntry methods on infogalactic:en
- test_move_entry_tewp()#
Test MoveEntry methods on wikipedia:test
- test_moved_target_dewp()#
Test moved_target method on wikipedia:de
- test_moved_target_enwow()#
Test moved_target method on wowwiki:en
- test_moved_target_old()#
Test moved_target method on infogalactic:en
- test_moved_target_tewp()#
Test moved_target method on wikipedia:test
- test_patrol_entry_dewp()#
Test PatrolEntry methods on wikipedia:de
- test_patrol_entry_enwow()#
Test PatrolEntry methods on wowwiki:en
- test_patrol_entry_old()#
Test PatrolEntry methods on infogalactic:en
- test_patrol_entry_tewp()#
Test PatrolEntry methods on wikipedia:test
- test_rights_entry_dewp()#
Test RightsEntry methods on wikipedia:de
- test_rights_entry_enwow()#
Test RightsEntry methods on wowwiki:en
- test_rights_entry_old()#
Test RightsEntry methods on infogalactic:en
- test_rights_entry_tewp()#
Test RightsEntry methods on wikipedia:test
- test_thanks_page_dewp()#
Test Thanks page method return type on wikipedia:de
- test_thanks_page_enwow()#
Test Thanks page method return type on wowwiki:en
- test_thanks_page_old()#
Test Thanks page method return type on infogalactic:en
- test_thanks_page_tewp()#
Test Thanks page method return type on wikipedia:test
- class tests.logentries_tests.TestSimpleLogentries(*args, **kwargs)[source]#
Bases:
CheckHostnameMixin
,TestLogentriesBase
Test logentry classes without special classes.
- abstract_class = False#
- net = True#
- site = True#
- sites = {'dewp': {'code': 'de', 'family': 'wikipedia', 'target': 'Hauptseite'}, 'enwow': {'code': 'en', 'family': 'wowwiki', 'target': None}, 'old': {'code': 'en', 'family': Family("infogalactic"), 'target': None}, 'tewp': {'code': 'test', 'family': 'wikipedia', 'target': 'Main Page on wheels'}}#
- test_simple_entries_dewp()#
Test those entries which don’t have an extra LogEntry subclass on wikipedia:de
- test_simple_entries_enwow()#
Test those entries which don’t have an extra LogEntry subclass on wowwiki:en
- test_simple_entries_old()#
Test those entries which don’t have an extra LogEntry subclass on infogalactic:en
- test_simple_entries_tewp()#
Test those entries which don’t have an extra LogEntry subclass on wikipedia:test