Skip to content

Commit ddb7e18

Browse files
wanghonghwSteve Martinelli
authored andcommitted
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
1 parent b5001e4 commit ddb7e18

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎openstackclient/tests/volume/test_find_resource.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from openstackclient.common import exceptions
2222
from openstackclient.common import utils
2323
from openstackclient.tests import utils as test_utils
24+
from openstackclient.volume import client # noqa
2425

2526

2627
ID = '1after909'

0 commit comments

Comments
 (0)