]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Remove global mocking from test_pure.py
authorMichal Dulko <michal.dulko@intel.com>
Wed, 11 Mar 2015 09:36:38 +0000 (10:36 +0100)
committerMichal Dulko <michal.dulko@intel.com>
Wed, 11 Mar 2015 09:36:38 +0000 (10:36 +0100)
commit3947faca85c221f3373840bf1ab54b20a8fed4c6
tree776eab83982e9a1aa448d1048e409a123e5faad8
parent5b3ff204cc8cd2d368479459e5ca5da8f30508d2
Remove global mocking from test_pure.py

Tests for pure driver are patching cinder.utils.retry globally. All
tests running after test_pure got imported have retry decorator already
mocked. This creates problems when writing new unit tests involving the
decorator. This change unpatches cinder.utils.retry after test_pure
imports pure driver.

Change-Id: Ie9cbe6ffb3cfcaba5a296b5083974696117b99bb
Closes-Bug: 1430699
cinder/tests/test_pure.py