Skip to content

Commit

Permalink
Clean up test_client
Browse files Browse the repository at this point in the history
  • Loading branch information
ej2 committed Jan 3, 2024
1 parent 6267c77 commit e7ae6dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ Changelog
* 0.9.6 (January 2, 2024)
* Replace RAuth with requests_oauthlib
* Removed python 2 code from client.py
* Removed unused dependencies from Pipfile
* Added new fields to Employee object
* Added VendorAddr to Bill object
* Added new fields to Estimate object
* Fix taxinclusiveamt and vendor setting 1099 creation
* Fix TaxInclusiveAmt and vendor setting 1099 creation
* Updated readme and contributing

* 0.9.5 (November 1, 2023)
* Added the ability to void all voidable QB types
Expand Down
20 changes: 2 additions & 18 deletions tests/unit/test_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import unittest
from tests.integration.test_base import QuickbooksUnitTestCase

try:
from mock import patch
Expand All @@ -8,7 +8,6 @@
from quickbooks.exceptions import QuickbooksException, SevereException, AuthorizationException
from quickbooks import client
from quickbooks.objects.salesreceipt import SalesReceipt
from intuitlib.client import AuthClient


TEST_SIGNATURE = 'nfPLN16u3vMvv08ghDs+dOkLuirEVDy5wAeG/lmM2OA='
Expand All @@ -17,27 +16,12 @@
TEST_REFRESH_TOKEN = 'refresh'


class ClientTest(unittest.TestCase):
class ClientTest(QuickbooksUnitTestCase):
def setUp(self):
super(ClientTest, self).setUp()

self.auth_client = AuthClient(
client_id='CLIENTID',
client_secret='CLIENT_SECRET',
environment='sandbox',
redirect_uri='http://localhost:8000/callback',
)

self.auth_client.access_token = 'ACCESS_TOKEN'

self.qb_client = client.QuickBooks(
# auth_client=self.auth_client,
refresh_token='REFRESH_TOKEN',
company_id='COMPANY_ID',
)

self.qb_client.sandbox = True

def tearDown(self):
self.qb_client = client.QuickBooks()
self.qb_client._drop()
Expand Down

0 comments on commit e7ae6dd

Please sign in to comment.