Wikimedia

Super setUp()s and tearDown()s in Pywikibot's unit test cases

Currently some test cases in Pywikibot's tests folder, like tests.http_tests.TestGetAuthenticationConfig, inherit from tests.aspects.TestCase, but do not super the parent's setUp and tearDown. They should.

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). More documentation on Gerrit can be found at 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 of this site. 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
  • test cases
  • pywikibot
  • unit testing

Students who completed this task

Geoffrey Mon

Task type

  • code Code
  • done_all Quality Assurance
close

2016