在virtualenv中使用gaetestbed

Mat*_*ris 6 google-app-engine unit-testing nose nosetests gaeunit

我想试试GAE Testbed,但在完成主页上说明后遇到以下错误.

$ nosetests --with-gae
...
ImportError: No module named dev_appserver
Run Code Online (Sandbox Code Playgroud)

我已经确认这种情况发生在virtualenv和一个外面.

Gre*_*con 11

使用--gae-lib-root选项,如

$ nosetests --with-gae --gae-lib-root=/opt/my/google_appengine


Mat*_*ris 9

通过添加google_appengine目录解决PYTHONPATH.