Changes between Initial Version and Version 1 of Ticket #28400
- Timestamp:
- Jul 14, 2017, 10:51:28 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28400 – Description
initial v1 1 Data migrations that create data in the database do not persist after running tests that inherit from `TransactionTestCase`. The first test that runs on the database works as expected but subsequent tests do not. 1 Data migrations that create data in the database do not persist after running tests that inherit from `TransactionTestCase`. The first test that runs on the database works as expected but subsequent tests do not. I am filling as a bug as I would expect that data created before tests are ran would persist a transaction rollback during the test cases. A possible solution to this is to re-run data only migrations after truncating the tables. 2 2 3 3 Here is an example migration: … … 44 44 45 45 `TRUNCATE ... "auth_group_permissions", "auth_group", ...;; args=None` 46 47 A possible solution to this is to re-run data only migrations after truncating the tables.