Wikimedia

In Pywikibot, provide missing unit tests

Pywikibot is a Python-based framework to write bots for MediaWiki (more information).

Improve the code coverage of the Pywikibot library test suite. A patch on Gerrit is wanted.

Browse codecov analysis of Pywikibot and select a set of lines of code that are not yet exercised by the extensive test suite. Add a unit test which exercises that set of lines of code to the test suite, and after the code is merged it will be automatically tested on travis-ci. Create bug reports in Wikimedia Phabricator for any relevant failures encountered. See the provided patch in Gerrit at https://gerrit.wikimedia.org/r/#/c/178891 as an example of this task.

The Phabricator task for tracking missing library tests is https://phabricator.wikimedia.org/T60941

You are expected to provide a patch in Wikimedia Gerrit. Documentation on Gerrit is available.

Task tags

  • python
  • unit tests
  • testing
  • pywikibot
  • coverage

Students who completed this task

eisenhaus335, Anastasios Panagopoulos

Task type

  • code Code
  • done_all Quality Assurance
close

2017