我在PyCharm中创建了一个nose测试配置。我已经在虚拟环境中安装了NoseGAE。使用终端运行./env/bin/nosetests --with-gae src/tests
的测试效果很好。然而,PyCharm测试配置却失败了。
/Users/bistenes/Code/myproject/env/bin/python /Applications/PyCharm.app/Contents/helpers/pycharm/noserunner.py src/tests/
Testing started at 6:31 PM ...
/Users/bistenes/Code/myproject/env/lib/python2.7/site-packages/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin nosegae = nosegae:NoseGAE: nose>=0.10.1
RuntimeWarning)
配置设置为Nosetests,“所有文件夹”src/tests
。无论是否传递--with-gae
作为参数,错误都会发生。
随后的失败表明NoseGAE未加载:
AssertionError: No api proxy found for service "datastore_v3"