From 4dedf5ea75e629e957d2c767b28cc13f06d1b503 Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Mon, 3 Sep 2018 13:56:53 +0100 Subject: [PATCH] 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 --- placement/tests/functional/db/test_resource_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/placement/tests/functional/db/test_resource_provider.py b/placement/tests/functional/db/test_resource_provider.py index 66c03691a..2b320a431 100644 --- a/placement/tests/functional/db/test_resource_provider.py +++ b/placement/tests/functional/db/test_resource_provider.py @@ -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