sc3 / cookcountyjail

A Django app that tracks the population of Cook County Jail over time and summarizes trends.
http://cookcountyjail.recoveredfactory.net/api/1.0/?format=json
Other
31 stars 23 forks source link

add unit tests for Inmate class #303

Closed bepetersn closed 10 years ago

bepetersn commented 10 years ago

This code runs, apparently correctly, yet there are no tests that it does so. This lack of tests makes it hard to make changes to the code.

bepetersn commented 10 years ago

Adding unit tests to the other three parsing classes before trying to document this one will probably be easiest.

bepetersn commented 10 years ago

I don't think this was/is necessary, because the functions that the Inmate class is responsible for are pretty simple wrappers around calls to the Django ORM.