jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/667319 )
Change subject: [tests] require sseclient module with eventstreams_tests.TestEventSource ......................................................................
[tests] require sseclient module with eventstreams_tests.TestEventSource
Change-Id: I218a39d15d89b372e14954f7c417eef1bc3cc5c3 --- M tests/eventstreams_tests.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/eventstreams_tests.py b/tests/eventstreams_tests.py index e37dcd7..c1686ba 100644 --- a/tests/eventstreams_tests.py +++ b/tests/eventstreams_tests.py @@ -15,7 +15,7 @@ from pywikibot import config from pywikibot.family import WikimediaFamily
-from tests.aspects import TestCase, DefaultSiteTestCase +from tests.aspects import TestCase, DefaultSiteTestCase, require_modules
@mock.patch('pywikibot.comms.eventstreams.EventSource', new=mock.MagicMock()) @@ -288,6 +288,7 @@ del self.source
+@require_modules('sseclient') class TestEventSource(TestCase):
"""Test sseclient.EventSource."""