diff options
| author | wanghong <w.wanghong@huawei.com> | 2014-08-07 11:14:00 +0800 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2014-08-07 13:22:25 -0400 |
| commit | ddb7e18974964abbe3fc50dab47ab55286a7328c (patch) | |
| tree | db5e7d9c431fd213344d33a43b5e85c4da239488 /openstackclient | |
| parent | b5001e4b213ef92f31e418203f7e7deeb5e305c0 (diff) | |
| download | python-openstackclient-ddb7e18974964abbe3fc50dab47ab55286a7328c.tar.gz | |
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
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/tests/volume/test_find_resource.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openstackclient/tests/volume/test_find_resource.py b/openstackclient/tests/volume/test_find_resource.py index 8539070f..56081966 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' |
