Skip to content
This repository

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

tag: 1.0.1

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 docs
Octocat-spinner-32 .gitignore
Octocat-spinner-32 CHANGES
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 build_docs.sh
Octocat-spinner-32 flask_gae_tests.py
Octocat-spinner-32 pypi.sh
Octocat-spinner-32 setup.py
README.md

flask-gae_tests


Flask Extension with base test cases to simplify testing Flask applications on App Engine.


install with pip

pip install https://github.com/gregorynicholas/flask-gae_tests/tarball/master

usage

from flask.ext import gae_tests

# create a test Flask application..
app = Flask(__name__)
app.debug = True
app.request_class = gae_tests.FileUploadRequest

class TestCase(gae_tests.TestCase):
  def test_upload_returns_valid_blob_result(self):
    data, filename, size = gae_tests.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.