@@ -53,7 +53,8 @@ def test_client_with_deprecated_minor_version(self):
53
53
self .assertEqual (self .qb_client .minorversion , 74 )
54
54
self .assertEqual (len (w ), 1 )
55
55
self .assertTrue (issubclass (w [- 1 ].category , DeprecationWarning ))
56
- self .assertTrue ("Minor Version no longer supported." in str (w [- 1 ].message ))
56
+ self .assertTrue ("Minor Version 74 is no longer supported" in str (w [- 1 ].message ))
57
+ self .assertTrue ("Minimum supported version is 75" in str (w [- 1 ].message ))
57
58
58
59
def test_api_url (self ):
59
60
qb_client = client .QuickBooks (sandbox = False )
@@ -128,7 +129,7 @@ def test_update_object_with_request_id(self, make_req):
128
129
qb_client .update_object ("Customer" , "request_body" , request_id = "123" )
129
130
130
131
url = "https://sandbox-quickbooks.api.intuit.com/v3/company/1234/customer"
131
- make_req .assert_called_with ("POST" , url , "request_body" , file_path = None , file_bytes = None , request_id = "123" , params = {'minorversion' : client .QuickBooks .MINIMUM_MINOR_VERSION })
132
+ make_req .assert_called_with ("POST" , url , "request_body" , file_path = None , request_id = "123" , params = {'minorversion' : client .QuickBooks .MINIMUM_MINOR_VERSION })
132
133
133
134
@patch ('quickbooks.client.QuickBooks.get' )
134
135
def test_get_current_user (self , get ):
@@ -146,7 +147,8 @@ def test_get_report(self, make_req):
146
147
147
148
qb_client .get_report ("profitandloss" , {1 : 2 })
148
149
url = "https://sandbox-quickbooks.api.intuit.com/v3/company/1234/reports/profitandloss"
149
- make_req .assert_called_with ("GET" , url , params = {1 : 2 })
150
+ expected_params = {1 : 2 , 'minorversion' : client .QuickBooks .MINIMUM_MINOR_VERSION }
151
+ make_req .assert_called_with ("GET" , url , params = expected_params )
150
152
151
153
@patch ('quickbooks.client.QuickBooks.make_request' )
152
154
def test_get_single_object (self , make_req ):
0 commit comments