jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/461973 )
Change subject: [fix] Fix minor issues for eventstreams.py ......................................................................
[fix] Fix minor issues for eventstreams.py
- fix spelling mistake - fix eventstreams stream identifier
Change-Id: If2aaff8b3aabe4643148c4d7c0de311d7a9245d9 --- M pywikibot/comms/eventstreams.py M tests/eventstreams_tests.py 2 files changed, 3 insertions(+), 3 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/comms/eventstreams.py b/pywikibot/comms/eventstreams.py index a4695b3..b8ae34f 100644 --- a/pywikibot/comms/eventstreams.py +++ b/pywikibot/comms/eventstreams.py @@ -55,7 +55,7 @@ >>> stream.register_filter(type='edit', wiki='wikidatawiki') >>> change = next(iter(stream)) >>> print('{type} on page {title} by {user}.'.format(**change)) - edit od page Q32857263 by XXN-bot. + edit on page Q32857263 by XXN-bot. >>> change {'comment': '/* wbcreateclaim-create:1| */ [[Property:P31]]: [[Q4167836]]', 'wiki': 'wikidatawiki', 'type': 'edit', 'server_name': 'www.wikidata.org', diff --git a/tests/eventstreams_tests.py b/tests/eventstreams_tests.py index a033dc0..5f903e8 100644 --- a/tests/eventstreams_tests.py +++ b/tests/eventstreams_tests.py @@ -46,7 +46,7 @@ def test_url_from_site(self, key): """Test EventStreams with url from site.""" site = self.get_site(key) - stream = 'recentchanges' + stream = 'recentchange' e = EventStreams(site=site, stream=stream) self.assertEqual( e._url, 'https://stream.wikimedia.org/v2/stream/' + stream) @@ -70,7 +70,7 @@ "Family '{0}' of site '{1}' is not a WikimediaFamily." .format(fam, site))
- stream = 'recentchanges' + stream = 'recentchange' e = EventStreams(stream=stream) self.assertEqual( e._url, 'https://stream.wikimedia.org/v2/stream/' + stream)
pywikibot-commits@lists.wikimedia.org