Moving from initial_data to data migrations stops test data persisting
|Reported by:||Andrew Godwin||Owned by:||Andrew Godwin|
|Cc:||jakerothenbuhler@…, merb, cmawebsite@…||Triage Stage:||Accepted|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Before migrations came along, tests would happily flush the database before each test so they could restore the data that was previously in there - initial data could be easily loaded from the initial_data fixture.
Now we're encouraging data migrations to load initial data in - which are superior in almost every way - there's no easy way to replay that data back at the moment and so tests just don't see this data. Something needs to be done to allow initial data to persist across tests.
Change History (34)
comment:1 Changed 2 years ago by
|Patch needs improvement:||unset|