Drop mox3 from karbor-dashboard
This patch does several things at once: - Remove mox from KarborApiTest. Use mock instead of mox3 to mock out the karborclient. - Use mock to mout the karborclient. - Drop mox3 from the test-requirements.txt. This is apart of the mox community goal for Rocky. Change-Id: Iea9e65778777746682895521f17ca69f5c27f7fd Signed-off-by: Charles Short <zulcss@gmail.com>
This commit is contained in:
parent
e33c2088f1
commit
6aca9b6580
File diff suppressed because it is too large
Load Diff
|
@ -12,9 +12,10 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
|
||||
from karbor_dashboard import api
|
||||
from karbor_dashboard.test import test_data
|
||||
from karborclient.v1 import client as karbor_client
|
||||
from openstack_dashboard.test import helpers
|
||||
|
||||
|
||||
|
@ -36,6 +37,5 @@ class APITestCase(helpers.APITestCase):
|
|||
|
||||
def stub_karborclient(self):
|
||||
if not hasattr(self, "karborclient"):
|
||||
self.mox.StubOutWithMock(karbor_client, 'Client')
|
||||
self.karborclient = self.mox.CreateMock(karbor_client.Client)
|
||||
self.karborclient = mock.Mock()
|
||||
return self.karborclient
|
||||
|
|
|
@ -12,7 +12,6 @@ coverage!=4.4,>=4.0 # Apache-2.0
|
|||
django-nose>=1.4.4 # BSD
|
||||
docutils>=0.11 # OSI-Approved Open Source, Public Domain
|
||||
mock>=2.0.0 # BSD
|
||||
mox3>=0.20.0 # Apache-2.0
|
||||
nodeenv>=0.9.4 # BSD
|
||||
nose>=1.3.7 # LGPL
|
||||
nose-exclude>=0.3.0 # LGPL
|
||||
|
|
Loading…
Reference in New Issue