What db are you using? There is a known issue with Postgresql and latest Django running the test cases correctly. Try sqlite and see if you get the same result.
-Chris On Mon, Oct 17, 2011 at 1:51 PM, Marco <[email protected]> wrote: > Has any one else had this problem when running ./manage.py test in > their Satchmo project? > > ./manage.py test > Creating test database for alias 'default'... > Error: Database test_store couldn't be flushed. Possible reasons: > * The database isn't running or isn't configured correctly. > * At least one of the expected database tables doesn't exist. > * The SQL was invalid. > Hint: Look at the output of 'django-admin.py sqlflush'. That's the > SQL this command wasn't able to run. > The full error: cannot truncate a table referenced in a foreign > key constraint > DETAIL: Table "product_downloadableproduct" references > "product_product". > HINT: Truncate table "product_downloadableproduct" at the same > time, or use TRUNCATE ... CASCADE. > > The hint given is useless, as ./manage.py sqlflush acts on the main db > and not the test db (right?). > > I am not sure even where to begin to look. Any help is appreciated. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Satchmo users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/satchmo-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
