Changes between Initial Version and Version 1 of Ticket #28400


Ignore:
Timestamp:
Jul 14, 2017, 10:51:28 PM (7 years ago)
Author:
Jared Mackey
Comment:

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.
     1Data 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.
    22
    33Here is an example migration:
     
    4444
    4545`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.
Back to Top