https://bugzilla.wikimedia.org/show_bug.cgi?id=58914

       Web browser: ---
            Bug ID: 58914
           Summary: Add test category to
                    "extensions/UploadWizard/test/api/upload-wizard_tests.
                    py' script
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: UploadWizard
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: aarcos.w...@gmail.com
                CC: aarcos.w...@gmail.com, bawolff...@gmail.com,
                    fflo...@wikimedia.org, gti...@wikimedia.org,
                    mtrac...@member.fsf.org, nischay...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to