Fix gate failures by a new pycodestyle

pycodestyle 2.5.0 introduces E117 over-indented.
This commit fixes E117 errors.

Change-Id: I1e8fdfa95753bc144a987f989f93e75e95d94a30
This commit is contained in:
manchandavishal 2019-01-30 17:49:43 +05:30
parent da62b278a6
commit d17cae6e77
2 changed files with 3 additions and 3 deletions

View File

@ -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')

View File

@ -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'))