diff --git a/glance/tests/functional/db/base.py b/glance/tests/functional/db/base.py index 37a862dcbe..c0e976042b 100644 --- a/glance/tests/functional/db/base.py +++ b/glance/tests/functional/db/base.py @@ -1278,8 +1278,8 @@ class TaskTests(test_utils.BaseTestCase): 'input': {'import_from': 'file:///a.img', 'import_from_format': 'qcow2', 'image_properties': { - "name": "GreatStack 1.22", - "tags": ["lamp", "custom"] + "name": "GreatStack 1.22", + "tags": ["lamp", "custom"] }}, }, { @@ -1288,17 +1288,18 @@ class TaskTests(test_utils.BaseTestCase): 'input': {'import_from': 'file:///b.img', 'import_from_format': 'qcow2', 'image_properties': { - "name": "GreatStack 1.23", - "tags": ["lamp", "good"] + "name": "GreatStack 1.23", + "tags": ["lamp", "good"] }}, }, { 'owner': self.context.owner, "type": "export", "input": { - "export_uuid": "deadbeef-dead-dead-dead-beefbeefbeef", - "export_to": "swift://cloud.foo/myaccount/mycontainer/path", - "export_format": "qcow2" + "export_uuid": "deadbeef-dead-dead-dead-beefbeefbeef", + "export_to": + "swift://cloud.foo/myaccount/mycontainer/path", + "export_format": "qcow2" } }, ] diff --git a/glance/tests/functional/v2/test_images.py b/glance/tests/functional/v2/test_images.py index 574aed7777..a347ed6bbb 100644 --- a/glance/tests/functional/v2/test_images.py +++ b/glance/tests/functional/v2/test_images.py @@ -288,9 +288,9 @@ class TestImages(functional.FunctionalTest): for i in range(3): changes.append({'op': 'add', 'path': '/locations/-', 'value': {'url': 'file://{0}'.format( - os.path.join(self.test_dir, - 'fake_image_%i' % i)), - 'metadata': {}}, + os.path.join(self.test_dir, + 'fake_image_%i' % i)), + 'metadata': {}}, }) data = jsonutils.dumps(changes) diff --git a/glance/tests/functional/v2/test_tasks.py b/glance/tests/functional/v2/test_tasks.py index 2ab4f19bc5..db6301c594 100644 --- a/glance/tests/functional/v2/test_tasks.py +++ b/glance/tests/functional/v2/test_tasks.py @@ -106,12 +106,12 @@ class TestTasks(functional.FunctionalTest): 'status': 'pending', 'type': 'import', 'input': { - "import_from": self.file_path, - "import_from_format": "qcow2", - "image_properties": { - 'disk_format': 'vhd', - 'container_format': 'ovf' - }}, + "import_from": self.file_path, + "import_from_format": "qcow2", + "image_properties": { + 'disk_format': 'vhd', + 'container_format': 'ovf' + }}, 'schema': '/v2/schemas/task', } for key, value in expected_task.items():