@@ -21,19 +21,19 @@ def setUp(self):
21
21
self .api ._access_token = 'Bearer testtoken'
22
22
23
23
@responses .activate
24
- def test_get_lineitem (self ):
25
- with open ('./tests/test_files/get_lineitem .json' , 'r' ) as lineitem_file :
26
- lineitem_json = json .load (lineitem_file )
27
- responses .add (responses .GET , '{}/sample/v1/projects/1/lineItems/100' .format (BASE_HOST ), json = lineitem_json , status = 200 )
28
- self .api .get_lineitem (1 , 100 )
24
+ def test_get_line_item (self ):
25
+ with open ('./tests/test_files/get_line_item .json' , 'r' ) as line_item_file :
26
+ line_item_json = json .load (line_item_file )
27
+ responses .add (responses .GET , '{}/sample/v1/projects/1/lineItems/100' .format (BASE_HOST ), json = line_item_json , status = 200 )
28
+ self .api .get_line_item (1 , 100 )
29
29
self .assertEqual (len (responses .calls ), 1 )
30
- self .assertEqual (responses .calls [0 ].response .json (), lineitem_json )
30
+ self .assertEqual (responses .calls [0 ].response .json (), line_item_json )
31
31
32
32
@responses .activate
33
- def test_get_lineitems (self ):
34
- with open ('./tests/test_files/get_lineitems .json' , 'r' ) as lineitem_file :
35
- lineitem_json = json .load (lineitem_file )
36
- responses .add (responses .GET , '{}/sample/v1/projects/1/lineItems' .format (BASE_HOST ), json = lineitem_json , status = 200 )
37
- self .api .get_lineitems (1 )
33
+ def test_get_line_items (self ):
34
+ with open ('./tests/test_files/get_line_items .json' , 'r' ) as line_item_file :
35
+ line_item_json = json .load (line_item_file )
36
+ responses .add (responses .GET , '{}/sample/v1/projects/1/lineItems' .format (BASE_HOST ), json = line_item_json , status = 200 )
37
+ self .api .get_line_items (1 )
38
38
self .assertEqual (len (responses .calls ), 1 )
39
- self .assertEqual (responses .calls [0 ].response .json (), lineitem_json )
39
+ self .assertEqual (responses .calls [0 ].response .json (), line_item_json )
0 commit comments