Import the portbinding db module in the Big Switch base test case
so the table gets created before the test is run. Otherwise the
tests will fail when being run with testtools because the portbinding
db isn't normally imported until a function call from the Plugin.
Closes-Bug: #
1331240
Change-Id: Icbd2248a0c013c142ccf9b302a1ffa15c5a4e5ae
from neutron.plugins.bigswitch import config
from neutron.tests.unit.bigswitch import fake_server
+# REVISIT(kevinbenton): This needs to be imported here to create the
+# portbindings table since it's not imported until function call time
+# in the porttracker_db module, which will cause unit test failures when
+# the unit tests are being run by testtools
+from neutron.db import portbindings_db # noqa
+
RESTPROXY_PKG_PATH = 'neutron.plugins.bigswitch.plugin'
NOTIFIER = 'neutron.plugins.bigswitch.plugin.AgentNotifierApi'
CALLBACKS = 'neutron.plugins.bigswitch.plugin.RestProxyCallbacks'