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: I7a7b0090139a72a06ec98d22e27e015307c3aec3
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:53:08 -05:00
parent 98e848606f
commit 6229b16442
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
5 changed files with 5 additions and 6 deletions

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from toscaparser.nodetemplate import NodeTemplate
from toscaparser.tests.base import TestCase

View File

@ -11,8 +11,7 @@
# under the License.
import sys
import mock
from unittest import mock
class FakeApp(object):

View File

@ -10,8 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
import testtools
from unittest import mock
try:
from StringIO import StringIO

View File

@ -10,8 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
import os
from unittest import mock
from translator.conf.config import ConfigProvider as translatorConfig
from translator.tests.base import TestCase

View File

@ -12,10 +12,10 @@
import json
import mock
import os
import shutil
import tempfile
from unittest import mock
from toscaparser.common import exception
from toscaparser.utils.gettextutils import _