Switch to using hacking checks from neutron-lib

Temporarily comment out the 'no neutron' check.

Change-Id: I41ab80509e811b021b7bf1dbbe001bb5591605b5
Partially-Implements: blueprint neutron-lib
This commit is contained in:
Doug Wiegley 2016-04-24 23:21:26 -05:00
parent 42a5342d50
commit b5e6fde608
3 changed files with 7 additions and 4 deletions

View File

@ -305,7 +305,7 @@ class TestSetNwaTenantBinding(testscenarios.WithScenarios, base.BaseTestCase):
'call_count_insert': 1,
'call_count_delete': 1
}),
]
]
@patch('networking_nec.nwa.l2.db_api.get_nwa_tenant_binding')
def test_set_nwa_tenant_binding(self, gntb):

View File

@ -8,7 +8,7 @@ Babel>=1.3 # BSD
debtcollector>=1.2.0 # Apache-2.0
eventlet!=0.18.3,>=0.18.2 # MIT
netaddr!=0.7.16,>=0.7.12 # BSD
neutron-lib>=0.0.1 # Apache-2.0
neutron-lib>=0.1.0 # Apache-2.0
oslo.config>=3.7.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0
oslo.log>=1.14.0 # Apache-2.0

View File

@ -41,8 +41,11 @@ commands = sphinx-build -W -b html doc/source doc/build/html
commands = oslo_debug_helper {posargs}
[flake8]
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build
# TODO(dougwig) -- uncomment this to test for remaining linkages
# N530 direct neutron imports not allowed
ignore = N530
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build
[hacking]
import_exceptions = networking_nec._i18n
local-check-factory = neutron.hacking.checks.factory
local-check-factory = neutron_lib.hacking.checks.factory