Merge "stop using register_dict_extend_funcs"

This commit is contained in:
Zuul 2019-01-30 20:55:31 +00:00 committed by Gerrit Code Review
commit 395974bd03

View File

@ -53,6 +53,7 @@ from neutron_lib.callbacks import registry
from neutron_lib.callbacks import resources
from neutron_lib import constants
from neutron_lib import context
from neutron_lib.db import resource_extend
from neutron_lib import exceptions as n_exc
from neutron_lib.plugins import constants as plugin_const
from neutron_lib.plugins import directory
@ -5600,7 +5601,7 @@ class TestRouterFlavorTestCase(extension.ExtensionTestCase,
self.plugin._flv_plugin = directory.get_plugin(plugin_const.FLAVORS)
self.plugin._process_router_flavor_create = mock.Mock()
self.plugin.register_dict_extend_funcs(
resource_extend.register_funcs(
l3_apidef.ROUTERS, [self._mock_add_flavor_id])
# init the availability zones