Use unittest.mock instead of third party mock

Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: If3a760ea142023791d44350d4603b329b4396f6b
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:58:42 -05:00
parent 621a392d32
commit 65a95cbd18
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
8 changed files with 11 additions and 8 deletions

View File

@ -17,7 +17,7 @@ test_masakariclient
Tests for `masakariclient` module.
"""
import mock
from unittest import mock
import uuid
from osc_lib import utils

View File

@ -17,7 +17,7 @@ test_masakariclient
Tests for `masakariclient` module.
"""
import mock
from unittest import mock
import uuid
from osc_lib.tests import utils as osc_lib_utils

View File

@ -17,8 +17,9 @@ test_masakariclient
Tests for `masakariclient` module.
"""
from unittest import mock
import ddt
import mock
import uuid
from osc_lib.tests import utils as osc_lib_utils

View File

@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
import testtools
from unittest import mock
from masakariclient import cliargs

View File

@ -18,7 +18,7 @@ test_masakariclient
Tests for `masakariclient` module.
"""
import mock
from unittest import mock
from masakariclient import client as mc
from masakariclient.common import utils

View File

@ -19,7 +19,8 @@ test_shell
Tests for `masakariclient` module.
"""
import logging
import mock
from unittest import mock
import six
import sys
import testtools

View File

@ -17,7 +17,7 @@ test_masakariclient
Tests for `masakariclient` module.
"""
import mock
from unittest import mock
from keystoneauth1.identity.generic import password as ks_password
from keystoneauth1 import session as ks_session

View File

@ -18,8 +18,9 @@ test_masakariclient
Tests for `masakariclient` module.
"""
from unittest import mock
import ddt
import mock
import six
import sys