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: I692abac2bf1fe118c27af043e71f315c8354c8a0
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:57:33 -05:00 committed by Pierre Riteau
parent 1db6cb37c6
commit d2503ab476
7 changed files with 6 additions and 7 deletions

View File

@ -14,7 +14,7 @@
# limitations under the License.
import mock
from unittest import mock
from blazarclient import base
from blazarclient import exception

View File

@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
from unittest import mock
import testtools
from blazarclient import command

View File

@ -14,7 +14,7 @@
# limitations under the License.
import argparse
import mock
from unittest import mock
from blazarclient import shell
from blazarclient import tests

View File

@ -14,7 +14,7 @@
# limitations under the License.
import argparse
import mock
from unittest import mock
from blazarclient import shell
from blazarclient import tests

View File

@ -15,7 +15,7 @@
import argparse
from datetime import datetime
import mock
from unittest import mock
from blazarclient import exception
from blazarclient import shell

View File

@ -9,7 +9,6 @@ fixtures==3.0.0
iso8601==0.1.11
keystoneauth1==3.4.0
linecache2==1.0.0
mock==3.0.0
monotonic==0.6
mox3==0.20.0
msgpack-python==0.4.0

View File

@ -7,7 +7,6 @@ hacking>=1.1.0,<3.0.1 # Apache-2.0
# care of pyflakes version compatibilty.
pyflakes>=2.1.1
mock>=3.0.0 # BSD
oslotest>=3.2.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
testrepository>=0.0.18 # Apache-2.0/BSD