Skip to content

Commit 84e1d52

Browse files
committed
Fix line-length
1 parent 9738892 commit 84e1d52

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

tests/test_line_items.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,25 @@ def test_update_line_item(self):
5757
update_lineitem_data = json.load(new_lineitem_file)
5858

5959
# Success response
60-
responses.add(responses.POST, '{}/sample/v1/projects/1/lineItems/1'.format(BASE_HOST), json={'status': {'message': 'success'}}, status=200)
60+
responses.add(
61+
responses.POST,
62+
'{}/sample/v1/projects/1/lineItems/1'.format(BASE_HOST),
63+
json={'status': {'message': 'success'}},
64+
status=200
65+
)
6166
# Response with error status
62-
responses.add(responses.POST, '{}/sample/v1/projects/1/lineItems/1'.format(BASE_HOST), json={'status': {'message': 'error'}}, status=200)
63-
67+
responses.add(
68+
responses.POST,
69+
'{}/sample/v1/projects/1/lineItems/1'.format(BASE_HOST),
70+
json={'status': {'message': 'error'}},
71+
status=200
72+
)
73+
6474
# Test success response
6575
self.api.update_line_item(1, 1, update_lineitem_data)
6676
self.assertEqual(len(responses.calls), 1)
6777

6878
# Test error response
6979
with self.assertRaises(DemandAPIError):
7080
self.api.update_line_item(1, 1, update_lineitem_data)
71-
self.assertEqual(len(responses.calls), 2)
81+
self.assertEqual(len(responses.calls), 2)

0 commit comments

Comments
 (0)