From 724b0dc795fab163f97bb90e681949184fad3364 Mon Sep 17 00:00:00 2001 From: Thierry Ducrest Date: Thu, 12 Sep 2024 12:15:22 +0200 Subject: [PATCH] [IMP] account_invoce_export: Add tests --- account_invoice_export/tests/test_export_invoice.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/account_invoice_export/tests/test_export_invoice.py b/account_invoice_export/tests/test_export_invoice.py index b11e6e7fec..f2b63e62f0 100644 --- a/account_invoice_export/tests/test_export_invoice.py +++ b/account_invoice_export/tests/test_export_invoice.py @@ -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())