Wikimedia
[Tracker] Unit test MediaWiki communication works fine
Required skills
- Basic Python knowledge.
Problem
Developers might break MediaWiki communication methods (defined in trackersite/tracker/models.py
, MediaInfo class) unintentionally, which breaks Tracker unless an user notices the bug.
Proposed solution
Implement tests for MediaInfo.add_to_mediawiki, MediaInfo.remove_from_mediawiki and MediaInfo.store_mediawiki_data. You don't need to actually write anything into MediaWiki when tests are runned to consider this task completed, however, if you decide to do so, it will be taken into account when Wikimedia decides about the winners.
Student is expected to send a patch for wikimedia-cz/tracker
repository, hosted at Wikimedia Gerrit. When claiming task on GCI website, student should claim a respective Phabricator task as well.
Materials
- Tracker in production
- Test Tracker version - you can play with Tracker freely here
- Codebase
Task tags
Students who completed this task
alcarazzam