如何让Eclipse+PyDev+appengine+unittesting正常工作?

2024-10-17 06:14:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我想用

Run As => Python unit-test

但是当我尝试的时候,我所有的模型测试都会出现错误消息:

BadArgumentError: app must not be empty.

有人用这个吗?在

NB:使用Nose测试运行良好——使用gae。但我希望PyDev能与资源的超链接等进行集成。


Tags: run模型testapp消息as错误not
1条回答
网友
1楼 · 发布于 2024-10-17 06:14:09

把我从Fabioz(PyDev创建者)自己得到的答案粘贴到SF:https://sourceforge.net/projects/pydev/forums/forum/293649/topic/3618848上的PyDev论坛上

There's no such option right now... please enter a feature request for that. Note that you can run nose itself from inside of pydev (with the with-gae option) which at least would give you hyperlinking inside of pydev to do that just create a custom run where nose is the main script.

事实上,我就是这么做的,而且它就像广告上说的那样有效。我也输入了那个功能请求。您可以通过在请求后面推动您的支持来提供帮助:https://sourceforge.net/tracker/?func=detail&aid=2974043&group_id=85796&atid=577332

相关问题 更多 >