Skip to content

Commit 5e322bc

Browse files
committed
fixing whitespaces and indentation
1 parent bcee977 commit 5e322bc

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

dynatademand/api.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,12 @@ def set_quotacell_status(self, project_id, line_item_id, quota_cell_id, action):
363363
'action': '{}'.format(action),
364364
},
365365
)
366-
response_data = self._api_post('/projects/{}/lineItems/{}/quotaCells/{}/{}'.format(project_id, line_item_id, quota_cell_id, action), {})
366+
response_data = self._api_post('/projects/{}/lineItems/{}/quotaCells/{}/{}'.format(
367+
project_id, line_item_id, quota_cell_id, action), {})
367368
if response_data.get('status').get('message') != 'success':
368-
raise DemandAPIError(
369-
"Could not {} quotacell. Demand API responded with: {}".format(action,
370-
response_data
369+
raise DemandAPIError(
370+
"Could not {} quotacell. Demand API responded with: {}".format(
371+
action,response_data
371372
)
372373
)
373374
return response_data

tests/test_line_items.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ def test_set_quotacell_status(self):
175175
json={'status': {'message': 'error'}},
176176
status=200
177177
)
178-
179178
# Tests pausing a quotacell.
180179
responses.add(
181180
responses.POST,
@@ -195,7 +194,6 @@ def test_set_quotacell_status(self):
195194
self.api.set_quotacell_status(24, 180, 1, "launch")
196195
self.assertEqual(len(responses.calls), 1)
197196

198-
199197
# Test error response for launch quotacell.
200198
with self.assertRaises(DemandAPIError):
201199
self.api.set_quotacell_status(24, 180, 1, "launch")

0 commit comments

Comments
 (0)