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
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.
2 matches
Mail list logo