Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Write tests #6

eads opened this Issue · 2 comments

3 participants


I need to brush up on writing Django tests.

@eads eads was assigned
@codersquid codersquid was assigned

It might be useful to generate a fixture using the dumpdata management command to bootstrap the test database for testing the various Resource classes.

Should the data be sanitized? I'm not sure how I feel about people's inmate admission records living forever in a git repo history. In the past, I've written a script using the name_generator package to replace real names with random ones.

Finally, the data set is big and slicing it/anonymizing it might be a little bit cumbersome or time consuming. It's probably a good idea to start writing some (failing) tests to get a better sense of what should be in the fixtures.


This needs to become part of our practice and we need specific tickets.

To address @ghing's comments from way back, we don't track any names nor do we keep the DOB (just the age at booking), so there's very little to identify people once they've dropped out of the system.

@eads eads closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.