GSoC/GCI Archive
Google Code-in 2014 Wikimedia Foundation

Pywikibot: Date Pagegenerator unit tests

completed by: Unicornisaurous

mentors: Fabian, John Vandenberg

Pywikibot is a Python-based framework to write bots for MediaWiki. See for more information. Patches can be submitted via Gerrit (you need a account). More documentation on Gerrit can be found at After you have successfully claimed this task in Google Melange please do use the task in Phabricator for communication instead of Google Melange. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at and the #pywikibot IRC channel (see

Help improve the code coverage (see ) of the Pywikibot library test suite, and create bug reports. Pywikibot has two 'date' page generators which select a set of wiki pages for years and days, but they do not have test cases, and it is very likely that they wont function correctly/optimally on some wiki sites .

This task is to add unit tests for these generators to the existing extensive test suite, especially tests which demonstrate bugs when run on sites other than Wikipedias. After the code is merged, it will be automatically tested on travis-ci, so the unit tests need to be flexible enough to run on the four different wiki configurations.  See for examples of similar unit tests.

The Phabricator task for tracking missing tests is .

Students are required to read Wikimedia's general instructions at first.