Use moxstubout and mockpatch from oslotest
Modules moxstubout and mockpatch from openstack/common/fixture/ are obsolete, so we should use them from oslotest library. Also oslotest depends on mock and mox, so we no longer need to specify them directly in test-requirements files Change-Id: I139133457cd73ee83537dead3446ee30d0ee5589
This commit is contained in:
@@ -22,10 +22,10 @@ import socket
|
||||
|
||||
import eventlet
|
||||
from oslotest import base as test_base
|
||||
from oslotest import moxstubout
|
||||
|
||||
from openstack.common import eventlet_backdoor
|
||||
from openstack.common.fixture import config
|
||||
from openstack.common.fixture import moxstubout
|
||||
|
||||
|
||||
class BackdoorPortTest(test_base.BaseTestCase):
|
||||
|
||||
@@ -33,10 +33,10 @@ from eventlet import event
|
||||
import mock
|
||||
import mox
|
||||
from oslotest import base as test_base
|
||||
from oslotest import moxstubout
|
||||
|
||||
from openstack.common import eventlet_backdoor
|
||||
from openstack.common.fixture import config
|
||||
from openstack.common.fixture import moxstubout
|
||||
from openstack.common import log as logging
|
||||
from openstack.common.notifier import api as notifier_api
|
||||
from openstack.common import service
|
||||
|
||||
@@ -16,8 +16,8 @@ import os
|
||||
import socket
|
||||
|
||||
from oslotest import base as test_base
|
||||
from oslotest import moxstubout
|
||||
|
||||
from openstack.common.fixture import moxstubout
|
||||
from openstack.common import systemd
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user