24 lines
855 B
Python
24 lines
855 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
import logging
|
|
|
|
from odoo.addons.account.tests.common import skip_unless_external
|
|
from odoo.tests import tagged
|
|
from odoo.addons.l10n_ar_edi.tests.common import TestArEdiMockedCommon
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
|
|
@tagged("post_install", "post_install_l10n", "-at_install")
|
|
class TestArEdiMocked(TestArEdiMockedCommon):
|
|
@classmethod
|
|
@TestArEdiMockedCommon.setup_afip_ws('wsfe')
|
|
def setUpClass(cls):
|
|
super().setUpClass()
|
|
cls.partner = cls.res_partner_adhoc
|
|
cls.journal = cls._create_journal('wsfe')
|
|
|
|
@skip_unless_external
|
|
def test_01_invoice_a_product(self):
|
|
with self.patch_client([('FECAESolicitar', 'FECAESolicitar-final', 'FECAESolicitar-final')]):
|
|
self._test_ar_edi_flow('', 'invoice', 'a', 'product')
|