Follow up test change for 8c8047ce2a

Change-Id: Ifc915b3ad0c00ec528183920cbe09f873dedcaf3
Signed-off-by: Balazs Gibizer <gibi@redhat.com>
This commit is contained in:
Balazs Gibizer
2025-12-16 12:40:39 +01:00
parent fc19a29d20
commit cbbb8b14e0
+4 -2
View File
@@ -235,11 +235,13 @@ class GenericUtilsTestCase(test.NoDBTestCase):
self.assertEqual('', utils.generate_hostid(None, project_id))
@mock.patch('nova.utils.concurrency_mode_threading', return_value=False)
def test_tpool_wrap_eventlet(self, mock_concurrency_mode):
@mock.patch('nova.utils.tpool.Proxy')
def test_tpool_wrap_eventlet(self, mock_tpool, mock_concurrency_mode):
mock_target = mock.MagicMock()
target = utils.tpool_wrap(mock_target)
self.assertEqual(target._obj, mock_target)
mock_tpool.assert_called_once_with(mock_target, autowrap=())
self.assertEqual(mock_tpool.return_value, target)
mock_concurrency_mode.assert_called_once_with()
@mock.patch('nova.utils.concurrency_mode_threading', return_value=True)