Wikimedia

Create two Unit tests for the awmd-stats tool

This task is about a tool at https://tools.wmflabs.org/awmd-stats/ running on Toolforge:

Unit tests are scripts to test the functionality of the Awmd Stats tool.

All methods of the codebase should be tested so that tests coverage can be 100%.

For now ~10 methods are yet to be covered by tests. Choose two methods and add a comment to https://phabricator.wikimedia.org/T205450 which two methods you will work on (so another student does not work on the same methods!) To add a comment you need a Phabricator account (see https://www.mediawiki.org/wiki/Phabricator/Help#Creating_your_account ) and for a Phabricator account you will need a Wikimedia account (if you do not have a Wikimedia account yet, go to https://www.mediawiki.org and click the "Create account" link at the top).

You are expected to provide a patch in Wikimedia Gerrit. See https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.

Task tags

  • test
  • python
  • unit testing
  • flask

Students who completed this task

arcaynia, refeed

Task type

  • code Code
  • done_all Quality Assurance
close

2018