jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/859444 )

Change subject: [tests] More deterministic tests for TestScriptGenerator
......................................................................

[tests] More deterministic tests for TestScriptGenerator

- always use wikipedia:en to run these tests
- clear _allowed_failures set which only skips the test
- put remaining scripts into _expected_failures set

Change-Id: I8d0ade9d66633dac6f9970d018f4c3a4daa375c5
---
M tests/script_tests.py
1 file changed, 35 insertions(+), 32 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/tests/script_tests.py b/tests/script_tests.py
index 5513cca..8df3bdd 100755
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -395,58 +395,47 @@
     login = True

     _expected_failures = {
-        'login',
         'add_text',
+        'archivebot',
+        'blockpageschecker',
         'category',
+        'category_redirect',
         'change_pagelang',
+        'checkimages',
         'claimit',
+        'clean_sandbox',
+        'commonscat',
+        'coordinate_import',
+        'create_isbn_edition',
         'dataextend',
         'data_ingestion',
         'delete',
+        'delinker',
         'djvutext',
         'download_dump',
+        'fixing_redirects',
         'harvest_template',
+        'imagetransfer',
         'interwiki',
         'listpages',
+        'login',
+        'misspelling',
         'movepages',
+        'newitem',
         'pagefromfile',
+        'parser_function_count',
+        'patrol'
         'protect',
         'redirect',
-        'reflinks',
+        'replace',
         'replicate_wiki',
         'revertbot',
+        'shell',
+        'solve_disambiguation',
         'speedy_delete',
         'template',
         'templatecount',
         'transferbot',
-    }
-
-    _allowed_failures = {
-        'archivebot',
-        'basic',
-        'blockpageschecker',
-        'category_redirect',
-        'checkimages',
-        'clean_sandbox',
-        'commonscat',
-        'commons_information',
-        'coordinate_import',
-        'cosmetic_changes',
-        'create_isbn_edition',
-        'delinker',
-        'fixing_redirects',
-        'illustrate_wikidata',
-        'image',
-        'imagetransfer',
-        'interwikidata',
-        'misspelling',
-        'newitem',
-        'parser_function_count',
-        'patrol',
-        'replace',
-        'shell',
-        'solve_disambiguation',
-        'touch',
         'unusedfiles',
         'upload',
         'watchlist',
@@ -454,8 +443,9 @@
         'welcome',
     }

-    _arguments = '-simulate -page:Foo -always'
-    _results = ("Working on 'Foo", 'Script terminated successfully')
+    _allowed_failures = set()
+    _arguments = '-simulate -page:Foobar -always -site:wikipedia:en'
+    _results = ("Working on 'Foobar'", 'Script terminated successfully')
     _skip_results = {}
     _timeout = True


--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/859444
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I8d0ade9d66633dac6f9970d018f4c3a4daa375c5
Gerrit-Change-Number: 859444
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to