3 ms·
I don't want to derail a splendid rant on yaks, but for GAE users running into this little problem of how to test and run: We use OS X for development, for the
by phlakaton 10y ago
I don't want to derail a splendid rant on yaks, but for GAE users running into this little problem of how to test and run:
We use OS X for development, for the most part, but Linux works well too.
We use nose2 with the following plugin to run unit tests: https://github.com/udacity/nose2-gae https://github.com/udacity/nose2-gae . It assumes your GAE SDK is installed at /usr/local/google_appengine.
For API tests, we generally create a webapp2.WSGIApplication object during setup, configured with the routes we want to test, and we send webapp2.Request objects to that application using request.get_response(wsgi_app).
Hope that helps!