Fix Octavia unit tests for python 3.8
The python 3.8 unit test jobs are failing on a mock.Mock(spec=secrets.Secret) call. Since this is legacy code and we don't really need to be testing python-barbicanclient code here, I'm removing the spec= for these tests to stop artificial failures when running unit tests on python 3.8. Change-Id: I9132e2d05bf67ddff4f2d7879d799c8dd25bd3c7
This commit is contained in:
parent
9d50c7918f
commit
5ee26a2035
@ -78,10 +78,10 @@ class TestBarbicanManager(base.TestCase):
|
||||
|
||||
self.empty_container = mock.Mock(spec=containers.CertificateContainer)
|
||||
|
||||
self.secret1 = mock.Mock(spec=secrets.Secret)
|
||||
self.secret2 = mock.Mock(spec=secrets.Secret)
|
||||
self.secret3 = mock.Mock(spec=secrets.Secret)
|
||||
self.secret4 = mock.Mock(spec=secrets.Secret)
|
||||
self.secret1 = mock.Mock()
|
||||
self.secret2 = mock.Mock()
|
||||
self.secret3 = mock.Mock()
|
||||
self.secret4 = mock.Mock()
|
||||
|
||||
# Mock out the client
|
||||
self.bc = mock.Mock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user