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):
pywikibot-commits@lists.wikimedia.org