________________________ TestUpload.test_sha1_missmatch ________________________
self = <tests.upload_tests.TestUpload testMethod=test_sha1_missmatch>
def test_sha1_missmatch(self):
"""Test trying to continue with a different file."""
> self._init_upload(1024)
tests/upload_tests.py:120:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/upload_tests.py:72: in _init_upload
ignore_warnings=warn_callback)
pywikibot/site/_decorators.py:93: in callee
return fn(self, *args, **kwargs)
pywikibot/site/_apisite.py:3023: in upload
return Uploader(self, filepage, **kwargs).upload()
pywikibot/site/_upload.py:134: in upload
return self._upload(self.ignore_warnings, self.report_success)
pywikibot/site/_upload.py:370: in _upload
data, file_key)):
tests/upload_tests.py:52: in warn_callback
self.assertCountEqual([w.code for w in warnings], expected_warns)
E AssertionError: Element counts were not equal:
E First has 1, Second has 0: 'duplicate-archive'Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| tests: Make upload SHA1 mismatch test dry | Mahveotm | pywikibot/core | master | +27 -13 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | Goal | None | T129368 Usages of unittest.expectedFailure or unittest.skip should be solved (goal) | ||
| Resolved | Xqt | T367260 Write test CI github action has ~ 22 failing tests or errors | |||
| Resolved | Mahveotm | T367321 TestUpload.test_sha1_missmatch() of upload_tests fails with AssertionError |
Event Timeline
Comment Actions
Change #1337004 had a related patch set uploaded (by Mahveotm; author: Mahveotm):
[pywikibot/core@master] tests: Make upload SHA1 mismatch test dry
Comment Actions
Change #1337004 merged by jenkins-bot:
[pywikibot/core@master] tests: Make upload SHA1 mismatch test dry