From ddb7e18974964abbe3fc50dab47ab55286a7328c Mon Sep 17 00:00:00 2001 From: wanghong Date: Thu, 7 Aug 2014 11:14:00 +0800 Subject: [PATCH] test_find_resource fails if run alone Currently, we set 'NAME_ATTR' attribute for Volume and Snapshot class in volume.client.py. When we test test_find_resource alone, the Volume and Snapshot class do not have 'NAME_ATTR' attribute since we do not import volume.client, which causes the tests to fail. Change-Id: I06f727ffa8d37afe1a1191c36574887fecc7a733 Closes-Bug: #1353788 --- openstackclient/tests/volume/test_find_resource.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openstackclient/tests/volume/test_find_resource.py b/openstackclient/tests/volume/test_find_resource.py index 8539070f14..56081966b7 100644 --- a/openstackclient/tests/volume/test_find_resource.py +++ b/openstackclient/tests/volume/test_find_resource.py @@ -21,6 +21,7 @@ from cinderclient.v1 import volumes from openstackclient.common import exceptions from openstackclient.common import utils from openstackclient.tests import utils as test_utils +from openstackclient.volume import client # noqa ID = '1after909'