]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Avoid manipulating DB directly in unit test
authorZane Bitter <zbitter@redhat.com>
Mon, 11 Mar 2013 15:54:21 +0000 (16:54 +0100)
committerZane Bitter <zbitter@redhat.com>
Mon, 11 Mar 2013 16:36:06 +0000 (17:36 +0100)
commit4888ab12fcd7eb1f660a4585da3ba8be82ae67a3
tree8aef62ea51d0380f487af367f5966ed70612281c
parentf6a024be81366c85ad1cbc61a4e6cb790fee113b
Avoid manipulating DB directly in unit test

Use the parser.Stack class for inserting data into the database in the
watch rule unit tests. If there is direct database manipulation in the unit
tests, it risks falling out of step with the implementation in the code (in
this case, by not supplying the disable_rollback value).

(Required to squash DB migrations, bug 1072949)

Change-Id: I66e5a0093d20222c876f52e626043704777dcb6a
heat/tests/test_watch.py