Django tests on postgresql with fixtures

20 views
Skip to first unread message

Dheerendra Rathor

unread,
Mar 9, 2016, 6:54:13 PM3/9/16
to Django users
According to django testing docs - database is flushed after each TestCase. It is working fine when I'm using sqlite for testing. But database is not flushed when using postgresql and testcases are failing since it is trying to load fixtures which have been loaded in previous TestCase. 

Is there any solution to that? Like forcefully flushing database and resetting sequences? 
Reply all
Reply to author
Forward
0 new messages