Fix #5368 - Improve test efficiancy
commitccd9dabe751f3a43573e4c5ba637e9dceb84d09b
authorJessica Tallon <tsyesika@tsyesika.se>
Mon, 28 Dec 2015 12:55:33 +0000 (28 12:55 +0000)
committerJessica Tallon <tsyesika@tsyesika.se>
Tue, 29 Dec 2015 16:42:37 +0000 (29 16:42 +0000)
tree4ad0f44e15d99a823fa141b8e42ad56537e813b9
parent63053f8c6608501832dbc9d9ab34d45a12204a11
Fix #5368 - Improve test efficiancy

There were a number of tests where lots of models where being iterated through
and then at the end committing them. The problem is all the changes had to be
kept in memory or on disk somewhere before they were commit to the database. This
fix commits each change as it's being made, allowing resources to be freed and fixing
some of the inefficiencies
mediagoblin/db/migrations.py