Browse Source

Enabled test mode for an app

pull/751/head
Armin Ronacher 12 years ago
parent
commit
775c76ac5c
  1. 1
      flask/testsuite/helpers.py

1
flask/testsuite/helpers.py

@ -133,6 +133,7 @@ class JSONTestCase(FlaskTestCase):
class ModifiedRequest(flask.Request):
url_charset = 'euc-kr'
app = flask.Flask(__name__)
app.testing = True
app.request_class = ModifiedRequest
app.url_map.charset = 'euc-kr'

Loading…
Cancel
Save