Skip to content

Commit fd88251

Browse files
author
Gabriel Monroy
committed
fix(flake8): fix spaces and a docstring
1 parent 95c2c77 commit fd88251

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

controller/api/tests/test_hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def test_build_hook(self):
120120
self.assertIn('domains', response.data)
121121

122122
def test_config_hook(self):
123-
"""Test creating a Config via an API Hook"""
123+
"""Test reading Config via an API Hook"""
124124
url = '/api/apps'
125125
body = {'cluster': 'autotest'}
126126
response = self.client.post(url, json.dumps(body), content_type='application/json')

controller/api/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def create(self, request, *args, **kwargs):
530530
User, username=request.DATA['receive_user'])
531531
# check the user is authorized for this app
532532
if user == app.owner or user in get_users_with_perms(app):
533-
config = app.release_set.latest().config
533+
config = app.release_set.latest().config
534534
serializer = self.get_serializer(config)
535535
return Response(serializer.data, status=status.HTTP_200_OK)
536536
raise PermissionDenied()

0 commit comments

Comments
 (0)