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:
parent
da62b278a6
commit
d17cae6e77
@ -56,7 +56,7 @@ class HeatRestTestCase(test.TestCase):
|
|||||||
'{"items": [{"id": "1"}, {"id": "2"}]}')
|
'{"items": [{"id": "1"}, {"id": "2"}]}')
|
||||||
hc.service_list.assert_called_once_with(request)
|
hc.service_list.assert_called_once_with(request)
|
||||||
self.mock_is_service_enabled.assert_called_once_with(
|
self.mock_is_service_enabled.assert_called_once_with(
|
||||||
request, 'orchestration')
|
request, 'orchestration')
|
||||||
|
|
||||||
@test.create_mocks({api.base: ('is_service_enabled',)})
|
@test.create_mocks({api.base: ('is_service_enabled',)})
|
||||||
def test_services_get_disabled(self):
|
def test_services_get_disabled(self):
|
||||||
@ -67,4 +67,4 @@ class HeatRestTestCase(test.TestCase):
|
|||||||
response = heat.Services().get(request)
|
response = heat.Services().get(request)
|
||||||
self.assertStatusCode(response, 501)
|
self.assertStatusCode(response, 501)
|
||||||
self.mock_is_service_enabled.assert_called_once_with(
|
self.mock_is_service_enabled.assert_called_once_with(
|
||||||
request, 'orchestration')
|
request, 'orchestration')
|
||||||
|
@ -23,7 +23,7 @@ class ResourceTypesTests(test.TestCase):
|
|||||||
@test.create_mocks({api.heat: ('resource_types_list',)})
|
@test.create_mocks({api.heat: ('resource_types_list',)})
|
||||||
def test_index(self):
|
def test_index(self):
|
||||||
self.mock_resource_types_list.return_value = \
|
self.mock_resource_types_list.return_value = \
|
||||||
self.resource_types.list()
|
self.resource_types.list()
|
||||||
|
|
||||||
res = self.client.get(
|
res = self.client.get(
|
||||||
reverse('horizon:project:resource_types:index'))
|
reverse('horizon:project:resource_types:index'))
|
||||||
|
Loading…
Reference in New Issue
Block a user