Skip to content

Commit

Permalink
[IMP] account_invoce_export: Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TDu committed Sep 17, 2024
1 parent bb68fa7 commit 724b0dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions account_invoice_export/tests/test_export_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ def test_log_error_in_chatter(self):
def test_get_file_description(self):
res = self.invoice_1._get_file_for_transmission_method()
self.assertTrue(res["file"])

def test_get_url(self):
url = self.transmit_method.get_transmission_url()
self.assertEqual(url, "https://example.com/post")

def test_get_header(self):
header = self.transmit_method.get_transmission_http_header()
self.assertTrue("Authorization" in header.keys())

0 comments on commit 724b0dc

Please sign in to comment.