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
|
2017-07-17 10:40:33 +02:00
|
|
|
import doctest
|
2017-04-28 09:26:42 +02:00
|
|
|
import trytond.tests.test_tryton
|
2017-06-08 08:36:48 +02:00
|
|
|
from trytond.tests.test_tryton import ModuleTestCase
|
2017-11-01 08:18:21 +01:00
|
|
|
from trytond.tests.test_tryton import doctest_teardown
|
2017-07-17 10:40:33 +02:00
|
|
|
from trytond.tests.test_tryton import doctest_checker
|
2017-04-28 09:26:42 +02:00
|
|
|
|
|
|
|
|
2017-06-08 08:36:48 +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()
|
2017-06-08 08:36:48 +02:00
|
|
|
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
|
|
|
|
AeatSIITestCase))
|
2017-07-17 10:40:33 +02:00
|
|
|
suite.addTests(doctest.DocFileSuite('scenario_aeat_sii.rst',
|
2017-11-01 08:18:21 +01:00
|
|
|
tearDown=doctest_teardown, encoding='utf-8',
|
2017-07-17 10:40:33 +02:00
|
|
|
checker=doctest_checker,
|
|
|
|
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
|
2017-04-28 09:26:42 +02:00
|
|
|
return suite
|