Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
flask extension to make functional testing of flask applications with the app engine sdk easier
Python Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
.gitignore
.nojekyll
CHANGES
LICENSE
README.md
build_docs.sh
flask_funktional_gae.py
flask_funktional_gae_tests.py
flask_gae_tests.py
pypi.sh
requirements.txt
setup.py

README.md

flask-funktional-gae

flask extension to make functional testing of flask applications with the app engine sdk easier.

Build Status


getting started

install with pip:

pip install flask-funktional-gae==0.0.1

overview

used on top of the flask-funktional extension, it provides setup of app engine sdk stubs with a focus on being transparent, seamless, and minimally invasive.

features

  • [todo]

example usage

from flask.ext import funktional
from flask.ext import funktional_gae


# define a test Flask application..
app = Flask(__name__)
app.debug = True
app.request_class = funktional.FileUploadRequest


class TestCase(funktional.TestCase):
  def test_upload_returns_valid_blob_result(self):
    data, filename, size = funktional.open_test_file('test_file.jpg')
    response = app.test_client().post(
      data={'test': (data, filename)},
      path='/test_upload1',
      headers={},
      query_string={})
    self.assertEqual(200, response.status_code)
Something went wrong with that request. Please try again.