Fix pep8 errors
This addresses the pep8 errors that are causing gate failures Change-Id: Id92dbbf527af1953026f17ddb3f2d79f0a635284
This commit is contained in:
parent
aa90e5c17e
commit
7f26bbcd59
|
@ -27,10 +27,9 @@ class Versions(api.BaseResource):
|
|||
|
||||
def on_get(self, req, resp):
|
||||
resp.status = falcon.HTTP_200
|
||||
resp.body = json.dumps({
|
||||
'v1.0': {
|
||||
resp.body = json.dumps(
|
||||
{'v1.0': {
|
||||
'path': '/api/v1.0',
|
||||
'status': 'stable'
|
||||
}
|
||||
})
|
||||
}})
|
||||
resp.content_type = 'application/json'
|
||||
|
|
|
@ -356,8 +356,10 @@ class ArmadaHandlerTestCase(base.ArmadaTestCase):
|
|||
if test_failure_to_run:
|
||||
|
||||
def fail(tiller, release, timeout=None, cleanup=False):
|
||||
status = AttrDict(
|
||||
**{'info': AttrDict(**{'Description': 'Failed'})})
|
||||
status = AttrDict(**{
|
||||
'info':
|
||||
AttrDict(**{'Description': 'Failed'})
|
||||
})
|
||||
raise tiller_exceptions.ReleaseException(
|
||||
release, status, 'Test')
|
||||
|
||||
|
|
|
@ -170,15 +170,14 @@ class ChartWaitTestCase(base.ArmadaTestCase):
|
|||
|
||||
get_resource_wait.side_effect = return_mock
|
||||
|
||||
unit = self.get_unit({
|
||||
'wait': {
|
||||
unit = self.get_unit(
|
||||
{'wait': {
|
||||
'resources': [{
|
||||
'type': 'foo'
|
||||
}, {
|
||||
'type': 'bar'
|
||||
}]
|
||||
}
|
||||
})
|
||||
}})
|
||||
|
||||
unit.wait(10)
|
||||
|
||||
|
@ -205,20 +204,12 @@ class PodWaitTestCase(base.ArmadaTestCase):
|
|||
'key': 'value',
|
||||
'helm.sh/hook': 'test-success'
|
||||
}),
|
||||
mock_resource({
|
||||
'helm.sh/hook': 'test-failure'
|
||||
}),
|
||||
mock_resource({
|
||||
'helm.sh/hook': 'test-success,pre-install'
|
||||
})
|
||||
mock_resource({'helm.sh/hook': 'test-failure'}),
|
||||
mock_resource({'helm.sh/hook': 'test-success,pre-install'})
|
||||
]
|
||||
non_test_resources = [
|
||||
mock_resource({
|
||||
'helm.sh/hook': 'pre-install'
|
||||
}),
|
||||
mock_resource({
|
||||
'key': 'value'
|
||||
}),
|
||||
mock_resource({'helm.sh/hook': 'pre-install'}),
|
||||
mock_resource({'key': 'value'}),
|
||||
mock_resource({})
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue