Remove moxstubout usage

As of version 3.5.0 moxstub will be deprecated,
so remove it where it has been used.

Change-Id: I033646a1e32a44dea54d902c43bb4def9da89b33
Signed-off-by: Charles Short <zulcss@gmail.com>
This commit is contained in:
Charles Short 2018-05-17 21:29:33 -04:00
parent f12219db85
commit 56797cc88b
2 changed files with 1 additions and 5 deletions

View File

@ -18,7 +18,6 @@ import os.path
import fixtures import fixtures
from oslo_config import cfg from oslo_config import cfg
from oslotest import moxstubout
import testtools import testtools
@ -27,9 +26,6 @@ class TestCase(testtools.TestCase):
def setUp(self): def setUp(self):
super(TestCase, self).setUp() super(TestCase, self).setUp()
self.tempdir = self.useFixture(fixtures.TempDir()) self.tempdir = self.useFixture(fixtures.TempDir())
moxfixture = self.useFixture(moxstubout.MoxStubout())
self.mox = moxfixture.mox
self.stubs = moxfixture.stubs
cfg.CONF([], project='pycadf') cfg.CONF([], project='pycadf')
def path_get(self, project_file=None): def path_get(self, project_file=None):

View File

@ -7,8 +7,8 @@ flake8-docstrings==0.2.1.post1 # MIT
coverage!=4.4,>=4.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD fixtures>=3.0.0 # Apache-2.0/BSD
oslotest>=3.2.0 # Apache-2.0
python-subunit>=1.0.0 # Apache-2.0/BSD python-subunit>=1.0.0 # Apache-2.0/BSD
mock>=2.0.0 # BSD
testrepository>=0.0.18 # Apache-2.0/BSD testrepository>=0.0.18 # Apache-2.0/BSD
testtools>=2.2.0 # MIT testtools>=2.2.0 # MIT