gpt4 book ai didi

python - 如何让 Eclipse + PyDev + App Engine + 单元测试工作?

转载 作者:太空宇宙 更新时间:2023-11-03 11:11:19 25 4
gpt4 key购买 nike

我想使用 Python Google App Engine 项目运行我的单元测试

Run As => Python unit-test

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

BadArgumentError: app must not be empty.

有人让这个工作吗?

注意:使用 Nose --with-gae 测试运行良好。但我希望 PyDev 与资源超链接等集成。

最佳答案

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

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

关于python - 如何让 Eclipse + PyDev + App Engine + 单元测试工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2473467/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com