Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1268069?usp=email )

Change subject: tests: Fix doctest in APISite.page_from_repository()
......................................................................

tests: Fix doctest in APISite.page_from_repository()

Bug: T422296
Change-Id: I30e16755f39458926ed2938ae906fe990fdf8db5
---
M pywikibot/site/_apisite.py
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Xqt: Verified; Looks good to me, approved




diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index 51c04de..c0dc457 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -1362,9 +1362,9 @@
         >>> site = pywikibot.Site('commons')
         >>> page = site.page_from_repository('Q131303')
         >>> page.title()
-        'Category:Hello World'
+        'Category:Hello World!'
         >>> page
-        Category('Category:Hello World')
+        Category('Category:Hello World!')

         It also works for wikibase repositories:


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

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

Reply via email to