Skip to content

Commit 3244367

Browse files
author
Matthew Fisher
committed
style(tests): flake8
1 parent 3a42959 commit 3244367

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

rootfs/api/tests/test_app.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ def test_app_actions(self, mock_requests, mock_get):
108108
# test logs - unanticipated status code from deis-logger
109109
mock_response.status_code = 400
110110
response = self.client.get(url)
111-
self.assertContains(response, "Error accessing logs for {}".format(app_id), status_code=500)
111+
self.assertContains(
112+
response,
113+
"Error accessing logs for {}".format(app_id),
114+
status_code=500)
112115

113116
# test logs - success accessing deis-logger
114117
mock_response.status_code = 200
@@ -119,7 +122,10 @@ def test_app_actions(self, mock_requests, mock_get):
119122
# test logs - HTTP request error while accessing deis-logger
120123
mock_get.side_effect = requests.exceptions.RequestException('Boom!')
121124
response = self.client.get(url)
122-
self.assertContains(response, "Error accessing logs for {}".format(app_id), status_code=500)
125+
self.assertContains(
126+
response,
127+
"Error accessing logs for {}".format(app_id),
128+
status_code=500)
123129

124130
# TODO: test run needs an initial build
125131

0 commit comments

Comments
 (0)