summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanchandavishal <manchandavishal143@gmail.com>2019-01-30 17:49:43 +0530
committermanchandavishal <manchandavishal143@gmail.com>2019-01-30 17:51:33 +0530
commitd17cae6e779bd420acd8bf89bf6df8bccbb58d5e (patch)
tree208b84bfc6d7d9e92c263947b8c342a038900726
parentda62b278a62b7cf3b76f195988ccece9ef09ab96 (diff)
Fix gate failures by a new pycodestyle
pycodestyle 2.5.0 introduces E117 over-indented. This commit fixes E117 errors. Change-Id: I1e8fdfa95753bc144a987f989f93e75e95d94a30
Notes
Notes (review): Code-Review+1: Ivan Kolodyazhny <e0ne@e0ne.info> Code-Review+1: Pavlo Shchelokovskyy <pshchelokovskyy@mirantis.com> Code-Review+2: Rico Lin <rico.lin.guanyu@gmail.com> Workflow+1: Rico Lin <rico.lin.guanyu@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 31 Jan 2019 11:03:15 +0000 Reviewed-on: https://review.openstack.org/633928 Project: openstack/heat-dashboard Branch: refs/heads/master
-rw-r--r--heat_dashboard/test/tests/api/test_heat_rest.py4
-rw-r--r--heat_dashboard/test/tests/content/test_resource_types.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/heat_dashboard/test/tests/api/test_heat_rest.py b/heat_dashboard/test/tests/api/test_heat_rest.py
index ca731dd..bc89d7c 100644
--- a/heat_dashboard/test/tests/api/test_heat_rest.py
+++ b/heat_dashboard/test/tests/api/test_heat_rest.py
@@ -56,7 +56,7 @@ class HeatRestTestCase(test.TestCase):
56 '{"items": [{"id": "1"}, {"id": "2"}]}') 56 '{"items": [{"id": "1"}, {"id": "2"}]}')
57 hc.service_list.assert_called_once_with(request) 57 hc.service_list.assert_called_once_with(request)
58 self.mock_is_service_enabled.assert_called_once_with( 58 self.mock_is_service_enabled.assert_called_once_with(
59 request, 'orchestration') 59 request, 'orchestration')
60 60
61 @test.create_mocks({api.base: ('is_service_enabled',)}) 61 @test.create_mocks({api.base: ('is_service_enabled',)})
62 def test_services_get_disabled(self): 62 def test_services_get_disabled(self):
@@ -67,4 +67,4 @@ class HeatRestTestCase(test.TestCase):
67 response = heat.Services().get(request) 67 response = heat.Services().get(request)
68 self.assertStatusCode(response, 501) 68 self.assertStatusCode(response, 501)
69 self.mock_is_service_enabled.assert_called_once_with( 69 self.mock_is_service_enabled.assert_called_once_with(
70 request, 'orchestration') 70 request, 'orchestration')
diff --git a/heat_dashboard/test/tests/content/test_resource_types.py b/heat_dashboard/test/tests/content/test_resource_types.py
index 0419d2b..235e47f 100644
--- a/heat_dashboard/test/tests/content/test_resource_types.py
+++ b/heat_dashboard/test/tests/content/test_resource_types.py
@@ -23,7 +23,7 @@ class ResourceTypesTests(test.TestCase):
23 @test.create_mocks({api.heat: ('resource_types_list',)}) 23 @test.create_mocks({api.heat: ('resource_types_list',)})
24 def test_index(self): 24 def test_index(self):
25 self.mock_resource_types_list.return_value = \ 25 self.mock_resource_types_list.return_value = \
26 self.resource_types.list() 26 self.resource_types.list()
27 27
28 res = self.client.get( 28 res = self.client.get(
29 reverse('horizon:project:resource_types:index')) 29 reverse('horizon:project:resource_types:index'))