Browse Source

Fix pep8 errors

This addresses the pep8 errors that are causing gate failures

Change-Id: Id92dbbf527af1953026f17ddb3f2d79f0a635284
changes/16/637116/1
Michael Beaver 3 months ago
parent
commit
7f26bbcd59

+ 3
- 4
armada/api/controller/versions.py View File

@@ -27,10 +27,9 @@ class Versions(api.BaseResource):
27 27
 
28 28
     def on_get(self, req, resp):
29 29
         resp.status = falcon.HTTP_200
30
-        resp.body = json.dumps({
31
-            'v1.0': {
30
+        resp.body = json.dumps(
31
+            {'v1.0': {
32 32
                 'path': '/api/v1.0',
33 33
                 'status': 'stable'
34
-            }
35
-        })
34
+            }})
36 35
         resp.content_type = 'application/json'

+ 4
- 2
armada/tests/unit/handlers/test_armada.py View File

@@ -356,8 +356,10 @@ class ArmadaHandlerTestCase(base.ArmadaTestCase):
356 356
             if test_failure_to_run:
357 357
 
358 358
                 def fail(tiller, release, timeout=None, cleanup=False):
359
-                    status = AttrDict(
360
-                        **{'info': AttrDict(**{'Description': 'Failed'})})
359
+                    status = AttrDict(**{
360
+                        'info':
361
+                        AttrDict(**{'Description': 'Failed'})
362
+                    })
361 363
                     raise tiller_exceptions.ReleaseException(
362 364
                         release, status, 'Test')
363 365
 

+ 7
- 16
armada/tests/unit/handlers/test_wait.py View File

@@ -170,15 +170,14 @@ class ChartWaitTestCase(base.ArmadaTestCase):
170 170
 
171 171
         get_resource_wait.side_effect = return_mock
172 172
 
173
-        unit = self.get_unit({
174
-            'wait': {
173
+        unit = self.get_unit(
174
+            {'wait': {
175 175
                 'resources': [{
176 176
                     'type': 'foo'
177 177
                 }, {
178 178
                     'type': 'bar'
179 179
                 }]
180
-            }
181
-        })
180
+            }})
182 181
 
183 182
         unit.wait(10)
184 183
 
@@ -205,20 +204,12 @@ class PodWaitTestCase(base.ArmadaTestCase):
205 204
                 'key': 'value',
206 205
                 'helm.sh/hook': 'test-success'
207 206
             }),
208
-            mock_resource({
209
-                'helm.sh/hook': 'test-failure'
210
-            }),
211
-            mock_resource({
212
-                'helm.sh/hook': 'test-success,pre-install'
213
-            })
207
+            mock_resource({'helm.sh/hook': 'test-failure'}),
208
+            mock_resource({'helm.sh/hook': 'test-success,pre-install'})
214 209
         ]
215 210
         non_test_resources = [
216
-            mock_resource({
217
-                'helm.sh/hook': 'pre-install'
218
-            }),
219
-            mock_resource({
220
-                'key': 'value'
221
-            }),
211
+            mock_resource({'helm.sh/hook': 'pre-install'}),
212
+            mock_resource({'key': 'value'}),
222 213
             mock_resource({})
223 214
         ]
224 215
 

Loading…
Cancel
Save