Merge "Use autospec instead of auto_spec"

This commit is contained in:
Zuul 2023-01-09 12:07:40 +00:00 committed by Gerrit Code Review
commit e612f58e18
1 changed files with 2 additions and 2 deletions

View File

@ -239,8 +239,8 @@ class TestTripleoOvercloudNetworkExtract(tests_base.TestCase):
self.assertEqual(name, 'public_subnet')
self.assertEqual(expected, subnet)
@mock.patch.object(plugin, 'get_subnet_info', auto_spec=True)
@mock.patch.object(plugin, 'get_network_info', auto_spec=True)
@mock.patch.object(plugin, 'get_subnet_info', autospec=True)
@mock.patch.object(plugin, 'get_network_info', autospec=True)
@mock.patch.object(openstack.connection, 'Connection', autospec=True)
def test_parse_net_resources(self, conn_mock, mock_get_network,
mock_get_subnet):