Commit f32a3dea authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

display a warning if some dependencies are missing in installing a business template in unit test.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43430 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b83b8b8
......@@ -74,6 +74,7 @@ from zLOG import LOG, DEBUG
from Products.ERP5Type.tests.backportUnittest import SetupSiteError
from Products.ERP5Type.tests.utils import DummyMailHostMixin, parseListeningAddress
from Products.ERP5.Document.BusinessTemplate import BusinessTemplateMissingDependency
# Quiet messages when installing products
install_product_quiet = 1
......@@ -894,6 +895,12 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
bt = template_tool.download(url)
if not quiet:
ZopeTestCase._print('(imported in %.3fs) ' % (time.time() - start))
# For unit test, we accept installing business templates with
# missing a part of dependencies.
try:
bt.checkDependencies()
except BusinessTemplateMissingDependency:
ZopeTestCase._print('(some dependencies are missing) ')
install_kw = None
if get_install_kw:
install_kw = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment