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: I78a70c535950f645fcb3a5f1e820d70cc6958d36
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:56:42 -05:00 committed by Alex Schultz
parent 15e6c371e6
commit bdaa7473b5
5 changed files with 5 additions and 5 deletions

View File

@ -12,9 +12,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.
from unittest import mock
import fixtures import fixtures
import json import json
import mock
import testtools import testtools
from openstack_virtual_baremetal import auth from openstack_virtual_baremetal import auth

View File

@ -15,9 +15,9 @@
import copy import copy
import json import json
import sys import sys
from unittest import mock
import fixtures import fixtures
import mock
import testtools import testtools
from openstack_virtual_baremetal import build_nodes_json from openstack_virtual_baremetal import build_nodes_json

View File

@ -14,10 +14,10 @@
# under the License. # under the License.
import copy import copy
from unittest import mock
import unittest import unittest
import yaml import yaml
import mock
import testtools import testtools
from openstack_virtual_baremetal import deploy from openstack_virtual_baremetal import deploy

View File

@ -13,10 +13,10 @@
# under the License. # under the License.
import sys import sys
from unittest import mock
import unittest import unittest
import fixtures import fixtures
import mock
from novaclient import exceptions from novaclient import exceptions
import testtools import testtools

View File

@ -4,7 +4,6 @@ fixtures>=0.3.14
python-subunit>=0.0.18 python-subunit>=0.0.18
stestr stestr
testtools>=0.9.36,!=1.2.0 testtools>=0.9.36,!=1.2.0
mock>=1.0
# docs # docs
sphinx!=1.6.6,>=1.6.2,<2.0.0;python_version=='2.7' # BSD sphinx!=1.6.6,>=1.6.2,<2.0.0;python_version=='2.7' # BSD