From d17cae6e779bd420acd8bf89bf6df8bccbb58d5e Mon Sep 17 00:00:00 2001 From: manchandavishal Date: Wed, 30 Jan 2019 17:49:43 +0530 Subject: [PATCH] Fix gate failures by a new pycodestyle pycodestyle 2.5.0 introduces E117 over-indented. This commit fixes E117 errors. Change-Id: I1e8fdfa95753bc144a987f989f93e75e95d94a30 --- heat_dashboard/test/tests/api/test_heat_rest.py | 4 ++-- heat_dashboard/test/tests/content/test_resource_types.py | 2 +- 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): '{"items": [{"id": "1"}, {"id": "2"}]}') hc.service_list.assert_called_once_with(request) self.mock_is_service_enabled.assert_called_once_with( - request, 'orchestration') + request, 'orchestration') @test.create_mocks({api.base: ('is_service_enabled',)}) def test_services_get_disabled(self): @@ -67,4 +67,4 @@ class HeatRestTestCase(test.TestCase): response = heat.Services().get(request) self.assertStatusCode(response, 501) self.mock_is_service_enabled.assert_called_once_with( - request, 'orchestration') + 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): @test.create_mocks({api.heat: ('resource_types_list',)}) def test_index(self): self.mock_resource_types_list.return_value = \ - self.resource_types.list() + self.resource_types.list() res = self.client.get( reverse('horizon:project:resource_types:index'))