jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/807110 )
Change subject: [IMPR] Add an empty id to wikibase simulate response.
......................................................................
[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(-)
Approvals:
Matěj Suchánek: Looks good to me, approved
jenkins-bot: Verified
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
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/807110
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: I737d9e0c3bca1f427af7141b1251ec60872ef42e
Gerrit-Change-Number: 807110
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged