Testing with managed tables

8 views
Skip to first unread message

Vincent

unread,
May 23, 2011, 12:47:40 PM5/23/11
to Django users
Whenever I try to run unit tests with my managed tables, Django
insists on re creating the test database, and then the tables do not
get created for testing. in providing initial data, there seems to be
no place to create a table. How should I do unit testing on unmanaged
tables?

Karen Tracey

unread,
May 24, 2011, 8:03:27 AM5/24/11
to django...@googlegroups.com

You mean unmanaged, right? Django will re-create the managed tables during testing.

This blog post might help: http://www.caktusgroup.com/blog/2010/09/24/simplifying-the-testing-of-unmanaged-database-models-in-django/

Karen
--
http://tracey.org/kmt/

Reply all
Reply to author
Forward
0 new messages