Re: Unit test an app using ContentType?

2012-07-18 Thread Aron Griffis
Here's a clue from Carl Meyer in an old Stackoverflow post: http://stackoverflow.com/questions/502916/django-how-to-create-a-model-dynamically-just-for-testing The idea here is to put additional models in myapp/tests/models.py and then include myapp.tests in INSTALLED_APPS when testing. This mig

Unit test an app using ContentType?

2012-07-18 Thread Aron Griffis
Hello, I've written a generic app that uses the ContentType framework. It's not designed to be used on its own, rather it plugs into an existing project, and then my other apps call a registration function. It's working well for me, but I'd like to write standalone unit tests and I'm not sure how.