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:
Sean McGinnis 2020-04-18 11:57:59 -05:00
parent 504ba41a68
commit 1f2b0ed263
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
11 changed files with 18 additions and 11 deletions

View File

@ -12,9 +12,9 @@
# under the License. # under the License.
import re import re
from unittest import mock
import lxml.etree import lxml.etree
import mock
import requests_mock import requests_mock
import dracclient.client import dracclient.client

View File

@ -11,7 +11,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 requests_mock import requests_mock
import dracclient.client import dracclient.client

View File

@ -12,8 +12,9 @@
# under the License. # under the License.
import lxml.etree import lxml.etree
import mock
import re import re
from unittest import mock
import requests_mock import requests_mock
import dracclient.client import dracclient.client

View File

@ -11,7 +11,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 requests_mock import requests_mock
import dracclient.client import dracclient.client

View File

@ -13,7 +13,8 @@
import datetime import datetime
import lxml.etree import lxml.etree
import mock from unittest import mock
import requests_mock import requests_mock
import dracclient.client import dracclient.client

View File

@ -12,8 +12,9 @@
# under the License. # under the License.
import lxml.etree import lxml.etree
import mock
import re import re
from unittest import mock
import requests_mock import requests_mock
import dracclient.client import dracclient.client

View File

@ -13,8 +13,9 @@
import datetime import datetime
import lxml.etree import lxml.etree
import mock
import re import re
from unittest import mock
import requests_mock import requests_mock
import dracclient.client import dracclient.client

View File

@ -14,9 +14,10 @@
import collections import collections
import lxml.etree import lxml.etree
import mock
import random import random
import re import re
from unittest import mock
import requests_mock import requests_mock
import dracclient.client import dracclient.client

View File

@ -11,7 +11,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 requests_mock import requests_mock
import dracclient.client import dracclient.client

View File

@ -12,11 +12,11 @@
# under the License. # under the License.
import collections import collections
from unittest import mock
import uuid import uuid
import lxml.etree import lxml.etree
import lxml.objectify import lxml.objectify
import mock
import requests.exceptions import requests.exceptions
import requests_mock import requests_mock
import six import six

View File

@ -5,5 +5,4 @@
coverage>=3.6 coverage>=3.6
doc8 doc8
hacking>=1.1.0,<1.2.0 # Apache-2.0 hacking>=1.1.0,<1.2.0 # Apache-2.0
mock>=2.0
requests-mock>=1.0 requests-mock>=1.0