Skip to content

Instantly share code, notes, and snippets.

@cirocosta
Created February 14, 2014 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cirocosta/9004947 to your computer and use it in GitHub Desktop.
Save cirocosta/9004947 to your computer and use it in GitHub Desktop.
Running endpoints-proto-datastore tests

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment