Import placement, not nova, in rp db tests
Within the tests some mocks are done by package, not string, so the import is required to get those tests running properly. Which this change the following is successful: .tox/py27/bin/python -m testtools.run discover -f placement.tests.functional.db Tests running... [sqlachemy warning noise deleted] Ran 138 tests in 6.095s OK This success will not show up in zuul-based tests yet, as stestr's discovery mechanism is not yet able to complete. Change-Id: If8c1fa52ecc3b8afbcc33749827cb082facf4aac
This commit is contained in:
parent
5fec97d9fb
commit
4dedf5ea75
@ -17,7 +17,7 @@ import os_traits
|
|||||||
from oslo_db import exception as db_exc
|
from oslo_db import exception as db_exc
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
|
|
||||||
import nova
|
import placement
|
||||||
from placement import exception
|
from placement import exception
|
||||||
from placement.objects import consumer as consumer_obj
|
from placement.objects import consumer as consumer_obj
|
||||||
from placement.objects import resource_provider as rp_obj
|
from placement.objects import resource_provider as rp_obj
|
||||||
|
Loading…
Reference in New Issue
Block a user