Django UnitTests break on setup
I have a large complicated project with 10-15 installed different apps. I´m trying to implement UnitTests. 

My problem:
When django sets up the test db it crashes because a ManyToMany table is created with the same name twice.  

in the model the table is set up with db_table="my_table_name" but removing that creates the same error. If I drop my whole database and use syncdb it creates the tables without any problems. But, all classes from that app tries to create the indexes twice. If i put a comment on the ManyToMany field the tests works, it still creates the indexes twice and runs the tests fine. But crashes on teardown instead. 

I´ve been browsing for posts on the same problem. Cant find any posts with the same issues. 

I would appreciate any hints on where to go from here. 

Ubuntu: 11.10
Django version: 1.1.2
MysQL version: 5.1.61
Python version: 2.7.2
Django UnitTests break on setup
===

I have a large complicated project with 10-15 installed different apps. I´m trying to implement UnitTests. 

My problem:
When django sets up the test db it crashes because a ManyToMany table is created with the same name twice.  

in the model the table is set up with db_table="my_table_name" but removing that creates the same error. If I drop my whole database and use syncdb it creates the tables without any problems. But, all classes from that app tries to create the indexes twice. If i put a comment on the ManyToMany field the tests works, it still creates the indexes twice and runs the tests fine. But crashes on teardown instead. 

I´ve been browsing for posts on the same problem. Cant find any posts with the same issues. 

I would appreciate any hints on where to go from here. 

Ubuntu: 11.10
Django version: 1.1.2
MysQL version: 5.1.61
Python version: 2.7.2