]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow ML2 plugin test cases to be run independently
authorHenry Gessau <gessau@cisco.com>
Fri, 25 Apr 2014 19:46:58 +0000 (15:46 -0400)
committerHenry Gessau <gessau@cisco.com>
Mon, 28 Apr 2014 19:45:13 +0000 (15:45 -0400)
commit8ccaf4905367c87d506549837b4bb658af83b135
treeec5abff53fef9f0ead4f1fade541568c0f407e3c
parent930e18e35acdb8f9e28ba8fd061f42883d60cf79
Allow ML2 plugin test cases to be run independently

Some test cases in neutron.tests.unit.ml2.test_ml2_plugin override the
network_vlan_ranges option in the ml2_type_vlan config group. However,
the test module does not import the ML2 type driver module where this
config group's options are registered. When unit tests are run by
tox/testr the module is imported during test discovery. Running the
tests independently via nose or testtools requires the option to be
explicitly imported.

Change-Id: I355a2d1212992eafed44f6d843c0fc9deb665df7
Closes-bug: #1287792
neutron/tests/unit/ml2/test_ml2_plugin.py