Skip to content

Commit

Permalink
[tst] unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
grindsa committed Jan 18, 2025
1 parent 6fc51e0 commit a4de83f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/test_dkb_robo.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,7 @@ def test_019_download_doc(self, mock_sleep):
doc.subject.return_value = 'Document Subject'
doc.download.return_value = True
self.dkb.wrapper = MagicMock()
with self.assertLogs('dkb_robo', level='INFO') as lcm:
self.dkb.download_doc(path=path, doc=doc, prepend_date=True, mark_read=True, use_account_folders=True, list_only=False, accounts_by_id={})
self.assertIn('INFO:dkb_robo:Downloading Document Subject to \\some\\path\\category\\account...', lcm.output)

self.dkb.download_doc(path=path, doc=doc, prepend_date=True, mark_read=True, use_account_folders=True, list_only=False, accounts_by_id={})
target = path / 'category' / 'account'
filename = '2022-01-01_document.pdf'
doc.download.assert_called_with(self.dkb.wrapper.client, target / filename)
Expand Down

0 comments on commit a4de83f

Please sign in to comment.