Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/740644 )
Change subject: [tests] Temporary add commonscat to unrunnable_script_set ......................................................................
[tests] Temporary add commonscat to unrunnable_script_set
This patch is for debug purpose only
Bug: T296204 Change-Id: I193dc74434f5a2f622c642effa06f73695dfa741 --- M tests/script_tests.py 1 file changed, 12 insertions(+), 12 deletions(-)
Approvals: Xqt: Verified; Looks good to me, approved
diff --git a/tests/script_tests.py b/tests/script_tests.py index f746518..8c29872 100644 --- a/tests/script_tests.py +++ b/tests/script_tests.py @@ -42,7 +42,7 @@ if not check_script_deps(name)}
# scripts which cannot be tested -unrunnable_script_set = set() +unrunnable_script_set = {'commonscat'}
def list_scripts(path, exclude=None): @@ -152,17 +152,17 @@ test_list = ['tests.script_tests.TestScriptHelp.' + name for name in tests]
- tests = (['test__login'] - + ['test_' + name - for name in sorted(script_list) - if name != 'login' - and name not in failed_dep_script_set - and name not in unrunnable_script_set - and (enable_autorun_tests or name not in auto_run_script_list) - ]) - - test_list += ['tests.script_tests.TestScriptSimulate.' + name - for name in tests] +## tests = (['test__login'] +## + ['test_' + name +## for name in sorted(script_list) +## if name != 'login' +## and name not in failed_dep_script_set +## and name not in unrunnable_script_set +## and (enable_autorun_tests or name not in auto_run_script_list) +## ]) +## +## test_list += ['tests.script_tests.TestScriptSimulate.' + name +## for name in tests]
tests = loader.loadTestsFromNames(test_list) suite = unittest.TestSuite()
pywikibot-commits@lists.wikimedia.org