easygae

Painless Google App Engine Testing - Nose2 Plugin


Keywords
unittest, testing, gae, appengine, nose2, app, engine
License
MIT
Install
pip install easygae==0.1

Documentation

easygae

A Nose2 Plugin to test Google App Engine (GAE) painlessly.

Cool, but what does it do?

Features

  • Inserts App Engine SDK in the Python Path.
  • Prepares the Testbed and initializes the stubs for you.

Installation

Via PIP (this assumes you are in your app folder):

$ pip install easygae  # This will also install Nose2
$ nose2 --plugin easygae

The plugin will look for the App Engine SDK in the following manner.

  1. Looks for an environment variable APPENGINE_ROOT
  2. Looks for a variable appengine-root in easygae section of Nose2 configuration.
  3. Checks if dev_appserver.py binary is installed and calculates the SDK path from there.

Roadmap

  • Provide useful and documented mocks for external services (like URLFetch)
  • Make it more customizable and support Nose 2 config files.