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: I1e30d77b7ca98c08ec8c42a18df863b202525418 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
parent
504ba41a68
commit
1f2b0ed263
@ -12,9 +12,9 @@
|
||||
# under the License.
|
||||
|
||||
import re
|
||||
from unittest import mock
|
||||
|
||||
import lxml.etree
|
||||
import mock
|
||||
import requests_mock
|
||||
|
||||
import dracclient.client
|
||||
|
@ -11,7 +11,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import requests_mock
|
||||
|
||||
import dracclient.client
|
||||
|
@ -12,8 +12,9 @@
|
||||
# under the License.
|
||||
|
||||
import lxml.etree
|
||||
import mock
|
||||
import re
|
||||
from unittest import mock
|
||||
|
||||
import requests_mock
|
||||
|
||||
import dracclient.client
|
||||
|
@ -11,7 +11,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import requests_mock
|
||||
|
||||
import dracclient.client
|
||||
|
@ -13,7 +13,8 @@
|
||||
|
||||
import datetime
|
||||
import lxml.etree
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import requests_mock
|
||||
|
||||
import dracclient.client
|
||||
|
@ -12,8 +12,9 @@
|
||||
# under the License.
|
||||
|
||||
import lxml.etree
|
||||
import mock
|
||||
import re
|
||||
from unittest import mock
|
||||
|
||||
import requests_mock
|
||||
|
||||
import dracclient.client
|
||||
|
@ -13,8 +13,9 @@
|
||||
|
||||
import datetime
|
||||
import lxml.etree
|
||||
import mock
|
||||
import re
|
||||
from unittest import mock
|
||||
|
||||
import requests_mock
|
||||
|
||||
import dracclient.client
|
||||
|
@ -14,9 +14,10 @@
|
||||
|
||||
import collections
|
||||
import lxml.etree
|
||||
import mock
|
||||
import random
|
||||
import re
|
||||
from unittest import mock
|
||||
|
||||
import requests_mock
|
||||
|
||||
import dracclient.client
|
||||
|
@ -11,7 +11,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import requests_mock
|
||||
|
||||
import dracclient.client
|
||||
|
@ -12,11 +12,11 @@
|
||||
# under the License.
|
||||
|
||||
import collections
|
||||
from unittest import mock
|
||||
import uuid
|
||||
|
||||
import lxml.etree
|
||||
import lxml.objectify
|
||||
import mock
|
||||
import requests.exceptions
|
||||
import requests_mock
|
||||
import six
|
||||
|
@ -5,5 +5,4 @@
|
||||
coverage>=3.6
|
||||
doc8
|
||||
hacking>=1.1.0,<1.2.0 # Apache-2.0
|
||||
mock>=2.0
|
||||
requests-mock>=1.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user