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:
Chris Dent 2018-09-03 13:56:53 +01:00 committed by Eric Fried
parent 5fec97d9fb
commit 4dedf5ea75

View File

@ -17,7 +17,7 @@ import os_traits
from oslo_db import exception as db_exc
import sqlalchemy as sa
import nova
import placement
from placement import exception
from placement.objects import consumer as consumer_obj
from placement.objects import resource_provider as rp_obj