Pywikibot: Add missing unit tests for pywikibot library
See https://phabricator.wikimedia.org/T60941
Improve the code coverage (see https://en.wikipedia.org/wiki/code_coverage ) of the Pywikibot library test suite. Run "coverage" using instructions on https://www.mediawiki.org/wiki/Manual:Pywikibot/Test_coverage#Library 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 bugs for any failures encountered. See https://gerrit.wikimedia.org/r/#/c/178891 as an example of this task.
Pywikibot is a Python-based framework to write bots for MediaWiki. See https://www.mediawiki.org/wiki/Manual:Pywikibot for more information. See https://www.mediawiki.org/wiki/User:John_Vandenberg/GCI_walk-through for a short introduction to using Pywikibot. 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 ).