我根据这个documentation在plone 5中运行单元测试。然而,当我执行此命令:ImportError:没有名为PloneTestCase的模块
bin/test
我得到了下面的导入错误:
Test-module import failures:
Module: nti.content.tests
Traceback (most recent call last):
File "/Users/ega/CMS/PloneCourseContentCMF/PloneCourseContentCMF-Buildout/sources/nti.content/nti/content/tests.py", line 8, in <module>
from Products.PloneTestCase import PloneTestCase as ptc
ImportError: No module named PloneTestCase
Test-modules with import problems:
nti.content.tests
Total: 0 tests, 0 failures, 0 errors in 0.000 seconds.
我怎样才能解决这个问题呢?
请提供完整的错误跟踪。 – tisto
重要的是要认识到Plone 5处于beta 1阶段。或者,您可能正在使用核心签出。这样的问题最好在开发列表中提出,因为答案不可能具有任何长期价值 - 并且不太适合于计算器。 – SteveM
@tisto我只是编辑我的问题上面。 – ega