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

test_pgsql_installation fails on the server, while apparently trying to load our new models #381

Closed bepetersn closed 10 years ago

bepetersn commented 10 years ago

Here is a gist showing the results of running the test locally (by setting CCJ_PRODUCTION env variable). It looks like what happens is Postgres tries to load all of our models (because of db.create_all(), with the db object imported from ccj.app.

A couple of points:

I would like to use this as a wedge to start using the pgsql database as we have decided we're going to, re: #365. In the meantime, I am going to relax the restriction of not deploying without passing tests, which our v2 fabfile has, because I would like to see if the v2 scraper can run successfully tomorrow (all of the real tests do pass).

wilbertom commented 10 years ago

Brian the enum column was missing a name needed for postgres. I noticed this when switching databases. I fixed it but haven't pushed because I need to finish other stuff first.

bepetersn commented 10 years ago

You should push to your github repo so people can see your work.

bepetersn commented 10 years ago

I'm just going to delete this stupid test.