I'm trying to use TransactionTestCase
in my Django tests so that all tables are truncated after each test. However, looking into the db query log I see that only a subset of tables is truncated, e.g.
LOG: statement: TRUNCATE "auth_user_user_permissions", "auth_group", "django_admin_log", "auth_user", "auth_permission", "auth_group_permissions", "django_content_type", "django_session", "auth_user_groups";
I have more models/tables defined in models.py
of my app. Why may those not get truncated?
Aucun commentaire:
Enregistrer un commentaire