Wikimedia

Pywikibot: Complete an enhancement with unit tests

Find and complete an enhancement in Phabricator in one of the Pywikibot projects, where the task is not tagged "Easy". Add unit tests for at least 50% test coverage of your new code.

When you have found an enhancement, post the Phabricator link into the GCI task instance comment box, so that a mentor can provide some advice about it (also discuss it on IRC).

Pywikibot has an extensive test suite . Part of the test suite is run automatically when you upload your change into Gerrit, and additional tests need to be manually run. The code reviewers will be checking that your tests all run.

Note: The tests should run on Travis-CI, however this is broken at the moment, so the tests must be run on your computer.

Pywikibot is a Python-based framework to write bots for MediaWiki. See https://www.mediawiki.org/wiki/Manual:Pywikibot for more information, and https://www.mediawiki.org/wiki/Manual:Pywikibot/PAWS for a short online interactive tutorial. Patches can be submitted via Gerrit (you need a MediaWiki.org account). See https://www.mediawiki.org/wiki/Manual:Pywikibot/Gerrit. After you have successfully claimed this task on this site please do use the task in Phabricator for communication instead. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l and the #pywikibot IRC channel (see https://www.mediawiki.org/wiki/MediaWiki_on_IRC ).

Task tags

  • python
  • travis-ci
  • unit tests
  • github

Students who completed this task

Phantom42, dgs, Geoffrey Mon

Task type

  • code Code
close

2016