silver:jin oleg$ python manage.py test --verbosity=2 goserver
Creating test database...
Processing admin.LogEntry model
Creating table django_admin_log
Processing auth.Permission model
Creating table auth_permission
Processing auth.Group model
Creating table auth_group
Processing auth.User model
Cr
do you load several fixtures in your unittest class?
from the error message, my guess would be that you have two fixtures
that contain the same model's data, and the model has a unique column
you can dump data for a specific app only, thus you might avoid such
problems
bye, V
On Sep 6, 7:21 pm,
Django testing application: using fixtures
Hi !
I came across strange problem while trying to use mixtures in my unittests
For example, I created a fixture from the database:
silver:jin oleg$ python manage.py dumpdata > datastored.json
Strange, but when the fixture is loaded while the test ru
3 matches
Mail list logo