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

Skip to content

Commit f6ab7a0

Browse files
committed
Update user-agent
1 parent 8ff070c commit f6ab7a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def test_make_request(self, qb_session):
253253

254254
qb_session.request.assert_called_with(
255255
"GET", url, True, "1234", data={},
256-
headers={'Content-Type': 'application/json', 'Accept': 'application/json'}, params={})
256+
headers={'Content-Type': 'application/json', 'Accept': 'application/json', 'User-Agent': 'python-quickbooks V3 library'}, params={})
257257

258258
def test_make_request_create_session(self):
259259
receipt = SalesReceipt()
@@ -298,7 +298,7 @@ def test_download_pdf(self, qb_session):
298298
url = "https://sandbox-quickbooks.api.intuit.com/v3/company/1234/salesreceipt/1/pdf"
299299
qb_session.request.assert_called_with(
300300
"GET", url, True, "1234",
301-
headers={'Content-Type': 'application/pdf', 'Accept': 'application/pdf, application/json'})
301+
headers={'Content-Type': 'application/pdf', 'Accept': 'application/pdf, application/json', 'User-Agent': 'python-quickbooks V3 library'})
302302

303303
qb_session.request.return_value = MockPdfResponse()
304304
response = receipt.download_pdf(qb_client)

0 commit comments

Comments
 (0)