[ckan-changes] [ckan/ckan] 5e38a9: Provide a quick reference to the Flask app on func...

GitHub noreply at github.com
Thu May 26 15:30:59 UTC 2016


  Branch: refs/heads/poc-flask-views
  Home:   https://github.com/ckan/ckan
  Commit: 5e38a9a3acda60cdea429e7c55314c47e3c98422
      https://github.com/ckan/ckan/commit/5e38a9a3acda60cdea429e7c55314c47e3c98422
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-26 (Thu, 26 May 2016)

  Changed paths:
    M ckan/tests/helpers.py

  Log Message:
  -----------
  Provide a quick reference to the Flask app on functional tests

Wrap the webtest.TestApp in a class that provides a flask_app property
so it can be used like this:

    app = self._get_test_app()
  with app.flask_app.test_request_context():
      offset = url_for(...




More information about the ckan-changes mailing list