jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1344679?usp=email )
Change subject: tests: Update consumed upload stash error
......................................................................
tests: Update consumed upload stash error
MediaWiki returns uploadstash-file-not-found for missing stashed
files. Update the live continuation test to assert the supported
code and avoid checking localized message text.
Bug: T438758
Change-Id: I62b423455f1a117d086830651f1541771662eaa1
---
M tests/upload_tests.py
1 file changed, 2 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/upload_tests.py b/tests/upload_tests.py
index 7dd9d56..077a141 100755
--- a/tests/upload_tests.py
+++ b/tests/upload_tests.py
@@ -446,10 +446,9 @@
ignore_warnings=True, report_success=False,
file_key=self._file_key, offset=self._offset))
- # Check if it's still cached
- with self.assertAPIError('siiinvalidsessiondata') as cm:
+ # Check that the file is no longer in the stash
+ with self.assertAPIError('uploadstash-file-not-found'):
self.site.stash_info(self._file_key)
- self.assertStartsWith(cm.exception.info, 'File not found')
def test_continue_filekey_once(self) -> None:
"""Test continuing to upload a file without using chunked mode."""
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1344679?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I62b423455f1a117d086830651f1541771662eaa1
Gerrit-Change-Number: 1344679
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]