hierarchal inheritance

2011-06-09 Thread LurkingFrog
In our current system, I have noted a pattern of hierarchal inheritance with regards to gathering configuration information . In the simplest case, we add generic foreign key to the table containing the configuration and check the existence of records in order of a predetermined precedence. For

Re: login using TestCase hangs

2011-05-06 Thread LurkingFrog
Well, after much rummaging I found that enabling autocommit allowed this to run. Still very weird that I only have the error when explicitly running my tests, as opposed to just a standard runserver. -- You received this message because you are subscribed to the Google Groups "Django users" g

login using TestCase hangs

2011-05-04 Thread LurkingFrog
I've been attempting to write some end to end integration tests using selenium for my current django app (ver 1.3), and have been having a problem with the login function hanging. After much tracing, I have discovered it hangs when psycopg2 (ver 2.4) tries to execute the update query for the last

Generic Foreign Keys in fixtures

2011-03-24 Thread LurkingFrog
Currently, I am writing unit tests for an application that uses generic foreign keys. Since the contenttypes are regenerated every test, I was wondering the most effective way to reconcile the existing test data with the new contenttypes PKs. My current thinking is to make an explicit fixture the