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:
parent
15e6c371e6
commit
bdaa7473b5
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue