Skip to main content

flask handlers for im_futuretask, for Google App Engine, Python standard environment

Project description

# im_futuretest_flask These are the flask utilities for the im_futuretest library. If your project uses flask, this is the package you want.

[![Build Status](](

## Install

Use the python package for this library. You can find the package online [here](

Change to your Python App Engine project’s root folder and do the following:

> pip install im_futuretest_flask –target lib

Or add it to your requirements.txt. You’ll also need to set up vendoring, see [app engine vendoring instructions here](

## Configuring im_futuretest_flask

This package provides functions that register flask handler functions for im_futuretest_flask, both for its api and its ui.

To get your tests running properly, you should register these handlers in your main app (wherever your main flask app is constructed). Doing this ensures that your tests have exactly the same code loaded as the code they’re testing would have when being used normally, ie: no dependency hell.

### app.yaml

The futuretest handlers all have routes of the form: /futuretest/XXX (where XXX may include more levels of pathing)

Say you already have an app.yaml rule which pushes all routes to your main app, say, as follows:

  • url: * script:

Then this will work for futuretest without any modification.

If things are a little messy, you can just add this somewhere early in app.yaml:

  • url: /futuretest/* script: login: admin

This will direct all futuretest routes to the “app” flask application constructed in Obviously modify this as needed.

Also note the requirement for the user to be an admin of your project. Futuretest is designed to run potentially long running and expensive tests; it’s best not to open that up to all comers!


Now traffic is going to the app constructed in

Next we need to register the futuretest flask handlers with your app.

Do it like this:

from flask import Flask from flaskhandlers import register_tests_api … other imports …

app = Flask(__name__) # creating your app

… add other handlers to your app, etc …

register_futuretest_handlers(app) # this adds IM Future Test’s handlers

… do more stuff with app …

ie: just call register_futuretest_handlers(app) somewhere in

### Accessing the UI

Go to the url


and you’ll see the UI:

![IM Future Test screenshot]( “IM Future Test screenshot”)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for im-futuretest-flask, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size im_futuretest_flask-0.1.3-py2.py3-none-any.whl (6.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size im_futuretest_flask-0.1.3.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page