need to mock out of the clear_expired_passwords for tox
Change-Id: Ida4b801dae6ee9d7874701a10f024298e92c73f7
This commit is contained in:
@@ -765,7 +765,7 @@ class MySqlAppMockTest(testtools.TestCase):
|
|||||||
when(mock_status).wait_for_real_status_to_change_to(
|
when(mock_status).wait_for_real_status_to_change_to(
|
||||||
any(), any(), any()).thenReturn(True)
|
any(), any(), any()).thenReturn(True)
|
||||||
app = MySqlApp(mock_status)
|
app = MySqlApp(mock_status)
|
||||||
|
when(dbaas).clear_expired_password().thenReturn(None)
|
||||||
self.assertRaises(TypeError, app.secure, None)
|
self.assertRaises(TypeError, app.secure, None)
|
||||||
|
|
||||||
verify(mock_conn, atleast=2).execute(any())
|
verify(mock_conn, atleast=2).execute(any())
|
||||||
|
|||||||
Reference in New Issue
Block a user