Dalba has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/405262 )

Change subject: TestDryPageGenerator: Fix the deprecated api.PageGenerator 
parameter
......................................................................

TestDryPageGenerator: Fix the deprecated api.PageGenerator parameter

The `titles` parameter is handled through `Request.clean_kwargs` which issues
a DeprecationWarning about using `parameters` isntead. Do it to avoid the
warning.

Bug: T185296
Change-Id: Ib108e513b66112956c19ce62746510e34c594a93
---
M tests/api_tests.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/62/405262/1

diff --git a/tests/api_tests.py b/tests/api_tests.py
index 7906847..cc5bf09 100644
--- a/tests/api_tests.py
+++ b/tests/api_tests.py
@@ -570,7 +570,7 @@
         mysite = self.get_site()
         self.gen = api.PageGenerator(site=mysite,
                                      generator="links",
-                                     titles="User:R'n'B")
+                                     parameters={'titles': "User:R'n'B"})
         # following test data is copied from an actual api.php response,
         # but that query no longer matches this dataset.
         # 
http://en.wikipedia.org/w/api.php?action=query&generator=links&titles=User:R%27n%27B

-- 
To view, visit https://gerrit.wikimedia.org/r/405262
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib108e513b66112956c19ce62746510e34c594a93
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to