jenkins-bot submitted this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
[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.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I737d9e0c3bca1f427af7141b1251ec60872ef42e
Gerrit-Change-Number: 807110
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged