Dalba created this task. Dalba added projects: Pywikibot-tests, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
$ export PYWIKIBOT_TEST_WRITE_FAIL=1; python -m unittest tests.edit_failure_tests.TestWikibaseSaveTest.test_WbMonolin gualText_invalid_text Logging in to wikidata:test as Dalba@tools WARNING: API error modification-failed: Data value corrupt: Can only construct a MonolingualTextValue with a string value. F ====================================================================== FAIL: test_WbMonolingualText_invalid_text (tests.edit_failure_tests.TestWikibaseSaveTest) Attempt adding a monolingual text with invalid non-string text. ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\programming\python\wiki\pywikibot-core\pywikibot\page.py", line 110, in handle func(self, *args, **kwargs) pywikibot.data.api.APIError: modification-failed: Data value corrupt: Can only construct a MonolingualTextValue with a string value. [messag es:[{'name': 'wikibase-validator-bad-value', 'parameters': ['Can only construct a MonolingualTextValue with a string value.'], 'html': {'*': 'Data value corrupt: Can only construct a MonolingualTextValue with a string value.'}}]; help:See https://test.wikidata.org/w/api.php for A PI usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> ; for notice of API deprecations and breaking changes.]
During handling of the above exception, another exception occurred: pywikibot.exceptions.OtherPageSaveError: Edit to page [[wikidata:test:Q68]] failed: modification-failed: Data value corrupt: Can only construct a MonolingualTextValue with a string value. [messages:[{'name': 'wikibase-valida tor-bad-value', 'parameters': ['Can only construct a MonolingualTextValue with a string value.'], 'html': {'*': 'Data value corrupt: Can onl y construct a MonolingualTextValue with a string value.'}}]; help:See https://test.wikidata.org/w/api.php for API usage. Subscribe to the me diawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecati ons and breaking changes.] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "E:\programming\python\wiki\pywikibot-core\tests\edit_failure_tests.py", line 173, in test_WbMonolingualText_invalid_text item.addClaim, claim) AssertionError: "Edit to page \[\[(wikidata:test:)?Q68]] failed:\ninvalid-snak: Invalid snak data." does not match "Edit to page [[wikidata: test:Q68]] failed: modification-failed: Data value corrupt: Can only construct a MonolingualTextValue with a string value. [messages:[{'name': 'wikibase-valida tor-bad-value', 'parameters': ['Can only construct a MonolingualTextValue with a string value.'], 'html': {'*': 'Data value corrupt: Can onl y construct a MonolingualTextValue with a string value.'}}]; help:See https://test.wikidata.org/w/api.php for API usage. Subscribe to the me diawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecati ons and breaking changes.]" ---------------------------------------------------------------------- Ran 1 test in 5.992s FAILED (failures=1)
TASK DETAIL
EMAIL PREFERENCES
To: Dalba
Cc: Aklapper, pywikibot-bugs-list, Dalba, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
Cc: Aklapper, pywikibot-bugs-list, Dalba, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs