Use unittest.mock instead of third party mock

Change-Id: I501ddb22496305b835fd8977b2839c7046c1c054
This commit is contained in:
Hongbin Lu
2020-04-02 13:39:42 +00:00
parent 2c10d40bf9
commit 4edad4bc69
13 changed files with 17 additions and 14 deletions

View File

@@ -13,10 +13,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
import six
from oslo_serialization import jsonutils from oslo_serialization import jsonutils
import six
from zunclient import api_versions from zunclient import api_versions
from zunclient.common.apiclient import exceptions from zunclient.common.apiclient import exceptions

View File

@@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
from zunclient import api_versions from zunclient import api_versions
from zunclient.osc import plugin from zunclient.osc import plugin

View File

@@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
from zunclient import api_versions from zunclient import api_versions
from zunclient import exceptions from zunclient import exceptions

View File

@@ -12,7 +12,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
import testtools import testtools
from zunclient import api_versions from zunclient import api_versions

View File

@@ -14,10 +14,10 @@
import re import re
import sys import sys
from unittest import mock
import fixtures import fixtures
from keystoneauth1 import fixture from keystoneauth1 import fixture
import mock
import six import six
from testtools import matchers from testtools import matchers

View File

@@ -13,7 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
import testtools import testtools
from zunclient.common.websocketclient import websocketclient from zunclient.common.websocketclient import websocketclient

View File

@@ -13,8 +13,8 @@
# under the License. # under the License.
import re import re
from unittest import mock
import mock
from testtools import matchers from testtools import matchers
from zunclient import api_versions from zunclient import api_versions

View File

@@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
from zunclient.tests.unit.v1 import shell_test_base from zunclient.tests.unit.v1 import shell_test_base

View File

@@ -12,7 +12,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
import testtools import testtools
from zunclient.v1 import client from zunclient.v1 import client

View File

@@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
from zunclient.common.apiclient import exceptions as apiexec from zunclient.common.apiclient import exceptions as apiexec
from zunclient.common import utils as zun_utils from zunclient.common import utils as zun_utils

View File

@@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
from zunclient.tests.unit.v1 import shell_test_base from zunclient.tests.unit.v1 import shell_test_base

View File

@@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
from zunclient.tests.unit.v1 import shell_test_base from zunclient.tests.unit.v1 import shell_test_base

View File

@@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
from zunclient.tests.unit.v1 import shell_test_base from zunclient.tests.unit.v1 import shell_test_base