jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1040776?usp=email )
Change subject: [tests] fix require_modules usage ...................................................................... [tests] fix require_modules usage https://doc.wikimedia.org/pywikibot/master/_modules/tests/aspects.html#require_modules Change-Id: I2f524a3907247b1c1bd9cb7427bce3b6ed0dcee6 --- M tests/README.rst M tests/gui_tests.py 2 files changed, 2 insertions(+), 3 deletions(-) Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved diff --git a/tests/README.rst b/tests/README.rst index e72ecd7..c4c8b9a 100644 --- a/tests/README.rst +++ b/tests/README.rst @@ -228,7 +228,7 @@ from tests.aspects import require_modules [......] - @require_modules(['important1', 'musthave2']) + @require_modules('important1', 'musthave2') def test_require_modules(self): @tests.aspects.require_version diff --git a/tests/gui_tests.py b/tests/gui_tests.py index 53044fa..428ba2e 100755 --- a/tests/gui_tests.py +++ b/tests/gui_tests.py @@ -55,8 +55,7 @@ self.assertIn('Main Page', text) -@require_modules('tkinter') -@require_modules('PIL') +@require_modules('tkinter', 'PIL') def setUpModule(): """Skip tests if tkinter or PIL is not installed. -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1040776?usp=email 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: I2f524a3907247b1c1bd9cb7427bce3b6ed0dcee6 Gerrit-Change-Number: 1040776 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]
