jenkins-bot submitted this change.
[tests] Expand simulate query response
Bug: T76694
Change-Id: I0e73b0706b40282eb090bdc4826becbe86f98aca
---
M pywikibot/data/api.py
1 file changed, 7 insertions(+), 1 deletion(-)
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 change 697445. To unsubscribe, or for help writing mail filters, visit settings.