Skip to content

Commit e7ae6dd

Browse files
committed
Clean up test_client
1 parent 6267c77 commit e7ae6dd

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

CHANGELOG.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ Changelog
33
* 0.9.6 (January 2, 2024)
44
* Replace RAuth with requests_oauthlib
55
* Removed python 2 code from client.py
6+
* Removed unused dependencies from Pipfile
67
* Added new fields to Employee object
78
* Added VendorAddr to Bill object
89
* Added new fields to Estimate object
9-
* Fix taxinclusiveamt and vendor setting 1099 creation
10+
* Fix TaxInclusiveAmt and vendor setting 1099 creation
11+
* Updated readme and contributing
1012

1113
* 0.9.5 (November 1, 2023)
1214
* Added the ability to void all voidable QB types

tests/unit/test_client.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import unittest
1+
from tests.integration.test_base import QuickbooksUnitTestCase
22

33
try:
44
from mock import patch
@@ -8,7 +8,6 @@
88
from quickbooks.exceptions import QuickbooksException, SevereException, AuthorizationException
99
from quickbooks import client
1010
from quickbooks.objects.salesreceipt import SalesReceipt
11-
from intuitlib.client import AuthClient
1211

1312

1413
TEST_SIGNATURE = 'nfPLN16u3vMvv08ghDs+dOkLuirEVDy5wAeG/lmM2OA='
@@ -17,27 +16,12 @@
1716
TEST_REFRESH_TOKEN = 'refresh'
1817

1918

20-
class ClientTest(unittest.TestCase):
19+
class ClientTest(QuickbooksUnitTestCase):
2120
def setUp(self):
2221
super(ClientTest, self).setUp()
2322

24-
self.auth_client = AuthClient(
25-
client_id='CLIENTID',
26-
client_secret='CLIENT_SECRET',
27-
environment='sandbox',
28-
redirect_uri='http://localhost:8000/callback',
29-
)
30-
3123
self.auth_client.access_token = 'ACCESS_TOKEN'
3224

33-
self.qb_client = client.QuickBooks(
34-
# auth_client=self.auth_client,
35-
refresh_token='REFRESH_TOKEN',
36-
company_id='COMPANY_ID',
37-
)
38-
39-
self.qb_client.sandbox = True
40-
4125
def tearDown(self):
4226
self.qb_client = client.QuickBooks()
4327
self.qb_client._drop()

0 commit comments

Comments
 (0)