summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/dhcp
diff options
context:
space:
mode:
authorDmitry Tantsur <divius.inside@gmail.com>2018-05-14 17:11:19 +0200
committerDmitry Tantsur <divius.inside@gmail.com>2018-05-15 15:37:14 +0200
commit86a5a1698fdfd70610cfbe8fa067f5fa377b3e43 (patch)
treed6a8047d55f044322f1931ec95875f428469f69c /ironic/tests/unit/dhcp
parentb118671c9825440c7d114332232628e996af18db (diff)
downloadironic-86a5a1698fdfd70610cfbe8fa067f5fa377b3e43.tar.gz
Remove excessive usage of mock_the_extension_manager in unit tests - part 1
This function does not work properly with hardware types, and is not needed in the most cases where it is used. The enabled_drivers option is changed instead where needed. This change covers only a (randomly selected) part of files. Other files will be updated separately. Change-Id: Iae40ed6c5d37bb2d2af3219d2f94922a2b32d78d
Diffstat (limited to 'ironic/tests/unit/dhcp')
-rw-r--r--ironic/tests/unit/dhcp/test_neutron.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/ironic/tests/unit/dhcp/test_neutron.py b/ironic/tests/unit/dhcp/test_neutron.py
index 641544f1c..4a147e21c 100644
--- a/ironic/tests/unit/dhcp/test_neutron.py
+++ b/ironic/tests/unit/dhcp/test_neutron.py
@@ -23,7 +23,6 @@ from ironic.common import exception
from ironic.common import pxe_utils
from ironic.conductor import task_manager
from ironic.dhcp import neutron
-from ironic.tests.unit.conductor import mgr_utils
from ironic.tests.unit.db import base as db_base
from ironic.tests.unit.objects import utils as object_utils
@@ -32,11 +31,9 @@ class TestNeutron(db_base.DbTestCase):
def setUp(self):
super(TestNeutron, self).setUp()
- mgr_utils.mock_the_extension_manager(driver='fake')
self.config(
cleaning_network='00000000-0000-0000-0000-000000000000',
group='neutron')
- self.config(enabled_drivers=['fake'])
self.config(dhcp_provider='neutron',
group='dhcp')
self.node = object_utils.create_test_node(self.context)