Wikimedia

Tracker: test_ticket_json should test the output is JSON

Problem

We currently have a test (test_ticket_json) that tests that /tickets/json/ .json loads successfully. It does not, through, make sure that the returned content is an actual JSON.  

Proposed solution

Add an assertion that will make sure the response content is valid JSON. Making sure returned ticket data makes sense would result in extra credit.   Student is expected to send a patch for wikimedia-cz/tracker repository, hosted at Wikimedia Gerrit. When claiming task on GCI website, student should claim a respective Phabricator task as well.  

Materials

 

Task tags

  • python
  • unittest
  • django

Students who completed this task

Netx

Task type

  • code Code
  • done_all Quality Assurance
close

2019