Testing Migrations (django 1.7)?

20 views
Skip to first unread message

Sean Briceland

unread,
Mar 16, 2015, 3:06:22 PM3/16/15
to django...@googlegroups.com
Hi all,
Previous to Django 1.7, I had a nifty solution for testing south Migrations.

I'd basically get a list of migrations for an app via:
migrations = Migrations('some_app')

Then to get the ORM at a given point in migrations:
orm_at_migration = migrations['000X_name_of_migration'].orm()

I could then use call_command to perform a migration and assert using the state-based orm's.

In Django 1.7, I haven't found a way to get the ORM at a given point in migrations. If anyone has any ideas or experience in this area, I would greatly appreciate a nudge in the right direction.

Thanks

Reply all
Reply to author
Forward
0 new messages