我根據這個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