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: Ibe31e2d17b8baf88c40e00e3beaa019b13594c7c
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:53:47 -05:00
parent aea10a2abb
commit 0f47555b38
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
10 changed files with 18 additions and 10 deletions

View File

@ -11,7 +11,8 @@
# under the License. # under the License.
import mock from unittest import mock
from oslo_utils import uuidutils from oslo_utils import uuidutils
from kuryr.lib.binding.drivers import hw_veb from kuryr.lib.binding.drivers import hw_veb

View File

@ -11,7 +11,8 @@
# under the License. # under the License.
import mock from unittest import mock
from oslo_utils import uuidutils from oslo_utils import uuidutils
from kuryr.lib.binding.drivers import ipvlan from kuryr.lib.binding.drivers import ipvlan

View File

@ -11,7 +11,8 @@
# under the License. # under the License.
import mock from unittest import mock
from oslo_utils import uuidutils from oslo_utils import uuidutils
from kuryr.lib.binding.drivers import macvlan from kuryr.lib.binding.drivers import macvlan

View File

@ -11,7 +11,8 @@
# under the License. # under the License.
import mock from unittest import mock
from oslo_utils import uuidutils from oslo_utils import uuidutils
from kuryr.lib.binding.drivers import nested from kuryr.lib.binding.drivers import nested

View File

@ -9,8 +9,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 ddt import ddt
import mock
from oslo_utils import uuidutils from oslo_utils import uuidutils
import pyroute2.ipdb.interfaces import pyroute2.ipdb.interfaces

View File

@ -11,7 +11,8 @@
# under the License. # under the License.
import mock from unittest import mock
from oslo_utils import uuidutils from oslo_utils import uuidutils
from kuryr.lib.binding.drivers import veth from kuryr.lib.binding.drivers import veth

View File

@ -11,7 +11,8 @@
# under the License. # under the License.
import mock from unittest import mock
from oslo_utils import uuidutils from oslo_utils import uuidutils
from kuryr.lib.binding.drivers import vlan from kuryr.lib.binding.drivers import vlan

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import mock from unittest import mock
from oslo_config import cfg from oslo_config import cfg
from six import moves from six import moves

View File

@ -10,7 +10,7 @@
# 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
from kuryr.lib import opts as kuryr_opts from kuryr.lib import opts as kuryr_opts
from kuryr.tests.unit import base from kuryr.tests.unit import base

View File

@ -10,8 +10,9 @@
# 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 ddt import ddt
import mock
import socket import socket
from oslo_config import cfg from oslo_config import cfg