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

Task tags

  • python
  • tests
  • django

Students who completed this task

alcarazzam

Task type

  • code Code
  • done_all Quality Assurance
close

2019