Python 单元测试需要google.appengine.ext

Python 单元测试需要google.appengine.ext,python,google-app-engine,webapp2,python-unittest,Python,Google App Engine,Webapp2,Python Unittest,我已经安装了GoogleAppEngine Python SDK并使用GUI。但是,现在我正在本地尝试在virtualenv中使用unittest测试我的应用程序。在我尝试访问google.appengine.ext.testbed之前,一切都很好。在此上下文中如何访问SDK?我的错误包括在下面 Traceback (most recent call last): File "tests.py", line 4, in <module> from google.appen

我已经安装了GoogleAppEngine Python SDK并使用GUI。但是,现在我正在本地尝试在virtualenv中使用unittest测试我的应用程序。在我尝试访问google.appengine.ext.testbed之前,一切都很好。在此上下文中如何访问SDK?我的错误包括在下面

Traceback (most recent call last):
  File "tests.py", line 4, in <module>
    from google.appengine.ext import testbed
ImportError: No module named google.appengine.ext

更新:在进一步的研究中,我发现GAE与virtualenv的关系不太好。随后,我在全球范围内安装了所有依赖项。这个问题没有改变,因此我认为我们可以排除virtualenv是罪魁祸首。

与项目相关的测试文件在哪里?相同的目录。tests.py可以找到main.py,main.py可以找到tests.py