测试属性表时出现奇怪的问题
在 vs.flexigridsearch
我有一个测试来检查是否 已安装与附加组件相关的属性表及其所有属性。
首先检查是否flexigridsearch_properties
可用:
self.assertEqual('flexigridsearch_properties' in pprops.objectIds(), True)
对属性表内属性的所有进一步检查都失败 因为属性表为空:
self.assertEqual('portalTypesToSearch' in fs_props, True)
属性表是通过 GenericSetup 定义的:
因此通过夹具添加属性表似乎工作但是 未添加属性。不知道为什么...但是它有效 当我通过 Plone 中的添加/删除程序添加附加组件时,效果非常好 站点设置。
知道为什么这在测试环境(Plone 4.0.5)中失败吗?
In vs.flexigridsearch
I have a test for checking if
the add-on related propertysheet is installed and all its properties.
The first check if flexigridsearch_properties
is available works:
self.assertEqual('flexigridsearch_properties' in pprops.objectIds(), True)
All further checks on for properties inside the propertysheet fail
because the propertysheet is empty:
self.assertEqual('portalTypesToSearch' in fs_props, True)
The propertysheet is defined through GenericSetup:
So adding the propertysheet through the fixture seems to work but
the properties are not added. No idea why... However it works
perfectly when I add the add-on through add/remove programs inside Plone
site setup.
Any idea why this is failing in testing environment (Plone 4.0.5)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
愚蠢的我。
必须使用
而不是
Stupid me.
One has to use
instead of