jenkins-bot submitted this change.
[IMPR] Add an empty id to wikibase simulate response.
This is necessary to solve a KeyError within WikibaseEntity.editEntity()
when simulating this method.
Change-Id: I737d9e0c3bca1f427af7141b1251ec60872ef42e
---
M pywikibot/data/api/_requests.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pywikibot/data/api/_requests.py b/pywikibot/data/api/_requests.py
index 9f779ef..cebd99d 100644
--- a/pywikibot/data/api/_requests.py
+++ b/pywikibot/data/api/_requests.py
@@ -532,7 +532,7 @@
action: {'result': 'Success', 'nochange': ''},
# wikibase results
- 'entity': {'lastrevid': -1},
+ 'entity': {'lastrevid': -1, 'id': '-1'},
'pageinfo': {'lastrevid': -1},
'reference': {'hash': -1},
}
To view, visit change 807110. To unsubscribe, or for help writing mail filters, visit settings.