diff options
| author | xiexs <xiexs@cn.fujitsu.com> | 2015-12-16 09:25:38 +0800 |
|---|---|---|
| committer | xiexs <xiexs@cn.fujitsu.com> | 2015-12-16 09:25:42 +0800 |
| commit | 556397aae721b240b6bd8eb971a18e669ad50c1d (patch) | |
| tree | 6ae4ee6571df222baa92409ddc2cd9d460380b8d /openstackclient/tests/image/v2/fakes.py | |
| parent | 50e52f355f8cf5c7cad8682923283bf61f244573 (diff) | |
| download | python-openstackclient-556397aae721b240b6bd8eb971a18e669ad50c1d.tar.gz | |
Refactor TestImageCreate with FakeImage class
Change-Id: I0044df36bb4d761c7998dfc8aa9a86d21d81da83
Implements: blueprint improve-image-unittest-framework
Diffstat (limited to 'openstackclient/tests/image/v2/fakes.py')
| -rw-r--r-- | openstackclient/tests/image/v2/fakes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/tests/image/v2/fakes.py b/openstackclient/tests/image/v2/fakes.py index 692ef104..5441a3e2 100644 --- a/openstackclient/tests/image/v2/fakes.py +++ b/openstackclient/tests/image/v2/fakes.py @@ -195,7 +195,7 @@ class FakeImage(object): 'owner': 'image-owner' + uuid.uuid4().hex, 'protected': bool(random.choice([0, 1])), 'visibility': random.choice(['public', 'private']), - 'tags': [uuid.uuid4().hex for r in range(random.randint(1, 5))], + 'tags': [uuid.uuid4().hex for r in range(2)], } # Overwrite default attributes if there are some attributes set |
