trytond-aeat_sii/tests/test_aeat_sii.py

25 lines
819 B
Python
Raw Permalink Normal View History

2017-04-28 09:26:42 +02:00
# The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms.
import unittest
import doctest
2017-04-28 09:26:42 +02:00
import trytond.tests.test_tryton
from trytond.tests.test_tryton import ModuleTestCase
from trytond.tests.test_tryton import doctest_teardown
from trytond.tests.test_tryton import doctest_checker
2017-04-28 09:26:42 +02:00
class AeatSIITestCase(ModuleTestCase):
'Test AEAT SII module'
module = 'aeat_sii'
2017-04-28 09:26:42 +02:00
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
AeatSIITestCase))
suite.addTests(doctest.DocFileSuite('scenario_aeat_sii.rst',
tearDown=doctest_teardown, encoding='utf-8',
checker=doctest_checker,
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
2017-04-28 09:26:42 +02:00
return suite