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
- Tracker in production
- Test Tracker version - you can play with Tracker freely here
- Codebase
Task tags
Students who completed this task
Netx