Refactor framework changing test to use ORM and commit successfully
Refactor framework changing test to use ORM and commit successfully

This test was breaking when a db select caused a db commit before the framework was set to a given status.
It has been updated to avoid this and to use the orm to change the statuses.

alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api