Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e86cf0

Browse files
committed
Test creating session if not created already
1 parent decaa42 commit 8e86cf0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/test_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ def test_make_request(self, qb_session):
190190
headers={'Content-Type': 'application/json', 'Accept': 'application/json'},
191191
params={'minorversion': 4})
192192

193+
def test_make_request_create_session(self):
194+
receipt = SalesReceipt()
195+
receipt.Id = 1
196+
self.assertRaises(QuickbooksException, receipt.save)
197+
193198
def test_handle_exceptions(self):
194199
qb_client = client.QuickBooks()
195200
error_data = {

0 commit comments

Comments
 (0)