]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Mocked utils.execute for broken tests
authorPranaliDeore <pranali11.deore@nttdata.com>
Fri, 13 Mar 2015 06:47:12 +0000 (23:47 -0700)
committerPranali Deore <pranali11.deore@nttdata.com>
Mon, 16 Mar 2015 06:21:15 +0000 (06:21 +0000)
commit3566ab955ec137c39e252ac77d6f31dea3fa220e
treea1ed5acc7cd7a10bf6f63f1da82d7fe9ef58051c
parentccacb291e637349558e68e6e2aed652b4ad91a91
Mocked utils.execute for broken tests

Few tests were failing because utils.execute
was not mocked.

Added decorator @mock.patch('cinder.utils.execute')
which will mock the utils.execute call for failing tests.

Closes-Bug: #1430525
Change-Id: Ib54b83b1ad6dc42b084adf48ddd53a64a9b12cf7
cinder/tests/test_volume.py