Drop one more use of mock lib

We've switched over to unittest.mock and removed the third party mock
package from our test-requirements.txt file. We used to get it
indirectly through using oslotest, but that package has now dropped it
as well. This uncovered one case where we were still importing mock.

Change-Id: I88eca756bc142a74eb0d9aab36eeb22ff074824b
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis
2020-06-17 04:32:42 -05:00
parent 0970d4bef7
commit 62362327ee

View File

@@ -1452,7 +1452,7 @@ class NfsDriverDoSetupTestCase(test.TestCase):
super(NfsDriverDoSetupTestCase, self).setUp()
self.context = mock.Mock()
self.create_configuration()
self.override_config('compute_api_class', 'mock.Mock')
self.override_config('compute_api_class', 'unittest.mock.Mock')
def create_configuration(self):
config = conf.Configuration(None)