Add extras modules to ModuleTestCase
issue7935 review50661002
This commit is contained in:
@@ -51,6 +51,7 @@ for dep in info.get('depends', []):
|
||||
requires.append(get_require_version('trytond_%s' % dep))
|
||||
requires.append(get_require_version('trytond'))
|
||||
|
||||
tests_require = [get_require_version('trytond_account_dunning')]
|
||||
dependency_links = []
|
||||
if minor_version % 2:
|
||||
dependency_links.append('https://trydevpi.tryton.org/')
|
||||
@@ -118,4 +119,5 @@ setup(name=name,
|
||||
""",
|
||||
test_suite='tests',
|
||||
test_loader='trytond.test_loader:Loader',
|
||||
tests_require=tests_require,
|
||||
)
|
||||
|
||||
@@ -15,6 +15,7 @@ from trytond.modules.account.tests import create_chart, get_fiscalyear
|
||||
class AccountCreditLimitTestCase(ModuleTestCase):
|
||||
'Test AccountCreditLimit module'
|
||||
module = 'account_credit_limit'
|
||||
extras = ['account_dunning']
|
||||
|
||||
@with_transaction()
|
||||
def test_check_credit_limit(self):
|
||||
|
||||
Reference in New Issue
Block a user