Duplicating production data for specific TestCase

8 views
Skip to first unread message

Burak Emre Kabakcı

unread,
Oct 27, 2013, 5:43:56 PM10/27/13
to django...@googlegroups.com
I need an actual data created by users in my special TestCase class. Django automatically create another database and execute syndb command which loads data into multiple tables (contenttypes, auth_permissions etc.) and fixtures and when I try to import my dump in setUp() method, it conflicts with the initial data.
I took a look at default DjangoTestSuiteRunner class but overriding this class in my settings doesn't seem like a good idea because it also uses different functions from different files for creating files (django.db.backends) and when I override DjangoTestSuiteRunner create_test_db method, it may cause problems for other TestCases in my project.
Reply all
Reply to author
Forward
0 new messages