8000 Add test for downloading PDFs of items with no Id · pythonthings/python-quickbooks@4a050ec · GitHub
[go: up one dir, main page]

Skip to content

Commit 4a050ec

Browse files
committed
Add test for downloading PDFs of items with no Id
1 parent bbc7e00 commit 4a050ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/test_mixins.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,9 @@ def test_download_invoice(self, download_pdf):
7676

7777
receipt.download_pdf()
7878
download_pdf.assert_called_once_with('SalesReceipt', 1)
79+
80+
def test_download_missing_id(self):
81+
from quickbooks.exceptions import QuickbooksException
82+
83+
receipt = SalesReceipt()
84+
self.assertRaises(QuickbooksException, receipt.download_pdf)

0 commit comments

Comments
 (0)
0