neutron/neutron/tests/retargetable
Ihar Hrachyshka 31e1aeb66b Forbid importing neutron.tests.* from outside tests subtree
neutron-sanity-check tool was importing neutron.tests.base module, which
may be not present on some systems (f.e. RDO splits neutron/tests/
subtree in a separate python-neutron-tests package). It made the tool
not usable in some setups.

https://bugzilla.redhat.com/show_bug.cgi?id=1374282

This is not the first time when we by mistake import from
neutron.tests.* and break distributions. It's time to stop it by
proactively forbidding that pattern via a new hacking check.

Some functions were moved from neutron.tests.base to
neutron.common.utils to fulfill the need requirement. They were moved
using debtcollector, no current consumers should be affected.

Closes-Bug: #1621782
Change-Id: I790777ddcbd1b02218b3db54ae3d5c931d72d4fa
2016-09-15 18:42:45 +00:00
..
__init__.py Simplify retargetable test framework 2015-03-31 20:13:04 +00:00
base.py Fixed a bunch of typos throughout Neutron 2015-10-30 08:54:41 -05:00
client_fixtures.py Restore MySQL and Postgresql functional testing 2016-06-29 13:20:17 -04:00
rest_fixture.py Switch to using in-tree tempest lib 2016-02-26 14:00:11 +00:00
test_example.py Forbid importing neutron.tests.* from outside tests subtree 2016-09-15 18:42:45 +00:00