django-nose icon indicating copy to clipboard operation
django-nose copied to clipboard

Initial data fixtures and FastFixtureTestCase

Open SoftwareMaven opened this issue 11 years ago • 1 comments

If I have some initial data in a fixture, when I use FastFixtureTestCase, I wind up with conflicting primary keys. It looks like somewhere the auto-increment for the primary key gets reset. Since the initial data fixture has used a number, at some point, they clash and my test fails.

This initial data is not used as part of the tests; rather, it is initial data that the system needs for basic deployment. Any ideas how I can maintain use of FastFixtureTestCase while not blowing up?

I should mention I am using South as well.

SoftwareMaven avatar Aug 29 '13 18:08 SoftwareMaven

Does this still happen with nose 1.4 and a current Django version?

jwhitlock avatar Jul 03 '15 02:07 jwhitlock