Merge "Use unittest.mock instead of mock"
This commit is contained in:
commit
6ff4fe370d
|
@ -9,7 +9,6 @@
|
|||
#
|
||||
charm-tools>=2.4.4
|
||||
requests>=2.18.4
|
||||
mock>=1.2
|
||||
flake8>=2.2.4
|
||||
stestr>=2.2.0
|
||||
coverage>=4.5.2
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from mock import MagicMock, patch, call, ANY
|
||||
from unittest.mock import MagicMock, patch, call, ANY
|
||||
import os
|
||||
import json
|
||||
import cinder_utils as utils
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from mock import patch, call
|
||||
from unittest.mock import patch, call
|
||||
import os
|
||||
import cinder_utils as cinder_utils
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import unittest
|
|||
import os
|
||||
import yaml
|
||||
|
||||
from mock import patch
|
||||
from unittest.mock import patch
|
||||
|
||||
|
||||
def load_config():
|
||||
|
|
Loading…
Reference in New Issue