Skip to content

Commit 6d76043

Browse files
committed
POP-2279 shortened long lines in tests
1 parent a56935f commit 6d76043

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/test_line_items.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,17 @@ def test_add_line_item(self):
5454
with open('./tests/test_files/examples/lineitem_new.json', 'r') as new_lineitem_file:
5555
new_lineitem_data = json.load(new_lineitem_file)
5656
# Success response
57-
responses.add(responses.POST, '{}/sample/v1/projects/24/lineItems'.format(BASE_HOST), json={'status': {'message': 'success'}}, status=200)
57+
responses.add(
58+
responses.POST,
59+
'{}/sample/v1/projects/24/lineItems'.format(BASE_HOST),
60+
json={'status': {'message': 'success'}},
61+
status=200)
5862
# Response with error status
59-
responses.add(responses.POST, '{}/sample/v1/projects/24/lineItems'.format(BASE_HOST), json={'status': {'message': 'error'}}, status=200)
63+
responses.add(
64+
responses.POST,
65+
'{}/sample/v1/projects/24/lineItems'.format(BASE_HOST),
66+
json={'status': {'message': 'error'}},
67+
status=200)
6068
# Test success response
6169
self.api.add_line_item(24, new_lineitem_data)
6270
self.assertEqual(len(responses.calls), 1)

0 commit comments

Comments
 (0)