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

Change subject: [tests] Update TestPwb test_similar_scripts_found
......................................................................

[tests] Update TestPwb test_similar_scripts_found

Bug: T223826
Change-Id: Iedf624bf655d382d4e9a6399a37b68ffd16aee32
---
M tests/pwb_tests.py
1 file changed, 7 insertions(+), 8 deletions(-)

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



diff --git a/tests/pwb_tests.py b/tests/pwb_tests.py
index faeef49..2a59374 100644
--- a/tests/pwb_tests.py
+++ b/tests/pwb_tests.py
@@ -105,21 +105,20 @@
         with self.subTest(line=2):
             self.assertEqual(stderr.readline().strip(), result[2])

-    @unittest.skip('No multiple results currently')
     def test_similar_scripts_found(self):
         """Test script call which gives multiple similar results."""
         result = [
-            'ERROR: commons.py not found! Misspelling?',
+            'ERROR: inter_wikidata.py not found! Misspelling?',
             '',
             'The most similar scripts are:',
-            '1 - nowcommons',
-            '2 - commonscat',
-            '3 - commons_link',
+            '1 - interwikidata',
+            '2 - illustrate_wikidata',
         ]
-        stderr = io.StringIO(execute_pwb(['commons'], data_in='q')['stderr'])
-        for line in range(6):
+        stderr = io.StringIO(
+            execute_pwb(['inter_wikidata'], data_in='q')['stderr'])
+        for line in result:
             with self.subTest(line=line):
-                self.assertEqual(stderr.readline().strip(), result[line])
+                self.assertEqual(stderr.readline().strip(), line)


 if __name__ == '__main__':  # pragma: no cover

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/665641
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: Iedf624bf655d382d4e9a6399a37b68ffd16aee32
Gerrit-Change-Number: 665641
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: JJMC89 <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to