jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/697445 )

Change subject: [tests] Expand simulate query response
......................................................................

[tests] Expand simulate query response

Bug: T76694
Change-Id: I0e73b0706b40282eb090bdc4826becbe86f98aca
---
M pywikibot/data/api.py
1 file changed, 7 insertions(+), 1 deletion(-)

Approvals:
  Matěj Suchánek: Looks good to me, but someone else must approve
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 907b9b9..fb3d0a4 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -1335,7 +1335,13 @@
             # for more realistic simulation
             if config.simulate is not True:
                 pywikibot.sleep(float(config.simulate))
-            return {action: {'result': 'Success', 'nochange': ''}}
+            return {
+                action: {'result': 'Success', 'nochange': ''},
+
+                # wikibase results
+                'pageinfo': {'lastrevid': -1},
+                'entity': {'lastrevid': -1},
+            }
         return None

     def _is_wikibase_error_retryable(self, error):

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/697445
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: I0e73b0706b40282eb090bdc4826becbe86f98aca
Gerrit-Change-Number: 697445
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: JJMC89 <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[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]

Reply via email to