Steps to replicate the issue:
pwb PYWIKIBOT_TEST_WRITE wikibase_edit_tests -v TestWikibaseMakeClaim.test_Coordinate_edit
What happens?:
test_Coordinate_edit test of wikibase_edit_tests.TestWikibaseMakeClaimfails fails due to missing 'precision' parameter
tests: max_retries reduced from 15 to 1 test_Coordinate_edit (__main__.TestWikibaseMakeClaim.test_Coordinate_edit) Attempt adding a Coordinate with globe set via item. ... ERROR 14.419s ====================================================================== ERROR: test_Coordinate_edit (__main__.TestWikibaseMakeClaim.test_Coordinate_edit) Attempt adding a Coordinate with globe set via item. ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\pwb\GIT\core\pywikibot\page\_decorators.py", line 34, in handle func(self, *args, **kwargs) File "D:\pwb\GIT\core\pywikibot\page\_wikibase.py", line 773, in addClaim self.repo.addClaim(self, claim, bot=bot, **kwargs) File "D:\pwb\GIT\core\pywikibot\site\_decorators.py", line 92, in callee return fn(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\pwb\GIT\core\pywikibot\site\_datasite.py", line 346, in addClaim data = req.submit() ^^^^^^^^^^^^ File "D:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 1113, in submit raise pywikibot.exceptions.APIError(**args) pywikibot.exceptions.APIError: modification-failed: Missing required field "precision" [param: action=wbsetclaim&claim=%7B%22mainsnak%22%3A+%7B%22snaktype%22%3A+%22value%22%2C+%22property%22%3A+%22P20480%22%2C+%22datatype%22%3A+%22globe-coordinate%22%2C+%22datavalue%22%3A+%7B%22value%22%3A+%7B%22latitude%22%3A+12.0%2C+%22longitude%22%3A+13.0%2C+%22altitude%22%3A+null%2C+%22globe%22%3A+%22http%3A%2F%2Ftest.wikidata.org%2Fentity%2FQ68%22%2C+%22precision%22%3A+null%7D%2C+%22type%22%3A+%22globecoordinate%22%7D%7D%2C+%22type%22%3A+%22statement%22%2C+%22id%22%3A+%22Q68%24c4913ba6-ba7e-43d4-855f-42c2d67bbc5b%22%2C+%22rank%22%3A+%22normal%22%7D&baserevid=647914&bot=&assert=user&maxlag=5&format=json&token=6d4748cc8a9468218a2c16b8f5cba8a464a3f498%2B%5C; messages: [{'name': 'wikibase-validator-missing-field', 'parameters': ['precision'], 'html': {'*': 'Das erforderliche Feld „precision“ fehlt'}}]; servedby: mw-api-ext.eqiad.canary-867bff946d-gkqb8; help: See https://test.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes.] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\pwb\GIT\core\tests\wikibase_edit_tests.py", line 308, in test_Coordinate_edit item.addClaim(claim) File "D:\pwb\GIT\core\pywikibot\page\_decorators.py", line 54, in wrapper handle(func, self, *args, **kwargs) File "D:\pwb\GIT\core\pywikibot\page\_decorators.py", line 46, in handle raise OtherPageSaveError(self, err) pywikibot.exceptions.OtherPageSaveError: Edit to page [[wikidata:test:Q68]] failed: modification-failed: Missing required field "precision" [param: action=wbsetclaim&claim=%7B%22mainsnak%22%3A+%7B%22snaktype%22%3A+%22value%22%2C+%22property%22%3A+%22P20480%22%2C+%22datatype%22%3A+%22globe-coordinate%22%2C+%22datavalue%22%3A+%7B%22value%22%3A+%7B%22latitude%22%3A+12.0%2C+%22longitude%22%3A+13.0%2C+%22altitude%22%3A+null%2C+%22globe%22%3A+%22http%3A%2F%2Ftest.wikidata.org%2Fentity%2FQ68%22%2C+%22precision%22%3A+null%7D%2C+%22type%22%3A+%22globecoordinate%22%7D%7D%2C+%22type%22%3A+%22statement%22%2C+%22id%22%3A+%22Q68%24c4913ba6-ba7e-43d4-855f-42c2d67bbc5b%22%2C+%22rank%22%3A+%22normal%22%7D&baserevid=647914&bot=&assert=user&maxlag=5&format=json&token=6d4748cc8a9468218a2c16b8f5cba8a464a3f498%2B%5C; messages: [{'name': 'wikibase-validator-missing-field', 'parameters': ['precision'], 'html': {'*': 'Das erforderliche Feld „precision“ fehlt'}}]; servedby: mw-api-ext.eqiad.canary-867bff946d-gkqb8; help: See https://test.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes.] ---------------------------------------------------------------------- Ran 1 test in 16.037s FAILED (errors=1)
What should have happened instead?:
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):