Add test on context of company multivalue target fields
issue10067 review333851026
This commit is contained in:
1 parent
acad9bf6a6
commit
625622c9a8
2 files changed
+9
-2
No files matched your search
@@ -63,7 +63,12 @@ for dep in info.get('depends', []):
|
||||
requires.append(get_require_version('trytond_%s' % dep))
|
||||
requires.append(get_require_version('trytond'))
|
||||
|
||||
tests_require = []
|
||||
tests_require = [
|
||||
get_require_version('trytond_company'),
|
||||
get_require_version('trytond_commission'),
|
||||
get_require_version('trytond_party'),
|
||||
get_require_version('trytond_web_user'),
|
||||
]
|
||||
dependency_links = []
|
||||
if minor_version % 2:
|
||||
dependency_links.append(
|
||||
|
||||
@@ -10,15 +10,17 @@ from trytond.pool import Pool
|
||||
from trytond.config import config
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
from trytond.modules.company.tests import CompanyMultiValueTestMixin
|
||||
from trytond.modules.notification_email import notification \
|
||||
as notification_module
|
||||
|
||||
FROM = 'tryton@example.com'
|
||||
|
||||
|
||||
class NotificationEmailTestCase(ModuleTestCase):
|
||||
class NotificationEmailTestCase(CompanyMultiValueTestMixin, ModuleTestCase):
|
||||
"Test Notification Email module"
|
||||
module = 'notification_email'
|
||||
extras = ['company', 'commission', 'party', 'web_user']
|
||||
|
||||
def setUp(self):
|
||||
super(NotificationEmailTestCase, self).setUp()
|
||||
|
||||
Reference in new issue
Block a user