Last modified: 2014-02-17 19:33:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60914, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58914 - Add "test image" category to "extensions/UploadWizard/test/api/upload-wizard_tests.py' script
Add "test image" category to "extensions/UploadWizard/test/api/upload-wizard_...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
master
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
https://www.mediawiki.org/wiki/Google...
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-23 20:44 UTC by aarcos.wiki
Modified: 2014-02-17 19:33 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description aarcos.wiki 2013-12-23 20:44:20 UTC
Right now the upload-wizard_test.py script doesn't add the category "[[Category:Test images]]" to the images that are uploaded. The category was added manually after running the script. This is suboptimal since users may forget to add this category when they run the tests agains a different environment or with a different user. The test should add this category automatically as part of the actual uploading task. This is simple, just need to add an extra field "text" with the required category to the upload API call, something like:

...
text="[[Category:Test images]]"
...

Here is the script that I want you to modify:

https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FUploadWizard/01e6f81e4b87e4634e0e44f173f9d2be53a57944/test%2Fapi%2Fupload-wizard_tests.py
Comment 1 Gerrit Notification Bot 2013-12-24 14:23:02 UTC
Change 103552 had a related patch set uploaded by M4tx:
Add "Test images" category to "upload-wizard_tests.py" script

https://gerrit.wikimedia.org/r/103552
Comment 2 Gerrit Notification Bot 2013-12-24 18:43:20 UTC
Change 103552 merged by jenkins-bot:
Add "Test images" category to "upload-wizard_tests.py" script

https://gerrit.wikimedia.org/r/103552
Comment 3 Andre Klapper 2014-02-17 19:33:51 UTC
aarcos: Assuming this bug is FIXED by merging the patch in comment 2.
If that is not the case: Please reopen and elaborate what is left to do here to get this report fixed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links