Use unittest.mock instead of mock

The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I887adac6caebb327871d3709ed59f25e401b5600
This commit is contained in:
Hervé Beraud 2020-06-08 22:44:28 +02:00
parent 462582e4f3
commit d90df3e9d2
3 changed files with 2 additions and 3 deletions

View File

@ -2,6 +2,5 @@
flake8
os-testr>=0.4.1
charms.reactive
mock>=1.2
coverage>=3.6
netifaces

View File

@ -12,7 +12,7 @@
import unittest
import mock
from unitest import mock
with mock.patch('charmhelpers.core.hookenv.metadata') as _meta:

View File

@ -12,7 +12,7 @@
import unittest
import mock
from unitest import mock
with mock.patch('charmhelpers.core.hookenv.metadata') as _meta: