Tag: openerp

运行OpenERP 7在PyCharm进行testing

我可以运行我的OpenERP v7加载项的unit testing,如下所述。 在PyCharm中,我通过在运行/debuggingconfiguration中添加了一个Pythonconfiguration,如下所示: 脚本: /home/juliocesar/work/projects/my_project/openerp-server 脚本参数: –addons-path=openerp/addons,openerp/addons/my_addons –log-level=test –database=my_project_db_test –db_host=localhost –db_user=test –db_password=123 –init=my_addon –test-enable –stop-after-init 它成功运行,但以文本日志格式显示标准输出,如下所示: 2015-04-24 13:47:55,101 12340 TEST my_project openerp.modules.module: module my_addon: executing 1 `fast_suite` and/or `checks` sub-modules 2015-04-24 13:47:55,101 12340 TEST my_project openerp.modules.module: test_change_old_received_to_contingency (openerp.addons.my_addon.tests.test_my_addon.TestMyItems) 2015-04-24 13:47:55,101 12340 TEST my_project openerp.modules.module: ` Test patch to change old received status to contingency. […]