A quick way for running endpoints-proto-datastore tests
- download App Engine SDK to the root of the project.
- create a virtualenv and then add the root of App Engine SDK to it
$ virtualenv .env
$ echo "$(pwd)/google_appengine" > .env/lib/python2.7/site-packages/gae.pth
- Activate the environment
$ source .env/bin/activate
- change
which
function contained in/endpoints_proto_datastore/test_utils.py
to this:
def which(name, flags=os.X_OK):
gae_path = os.path.split(os.getcwd())[0] + '/google_appengine'
return gae_path + "/" + name
Now run the tests doing the following:
$ python endpoints_proto_datastore/endpoints_proto_datastore_test_runner.py -v