Added tests for minitwit. Testing with Flask is awesome

This commit is contained in:
Armin Ronacher 2010-04-11 18:45:06 +02:00
parent 03168a5d53
commit f2dc38cda6
4 changed files with 153 additions and 4 deletions

View file

@ -265,9 +265,8 @@ class Flask(object):
options.setdefault('use_debugger', self.debug)
return run_simple(host, port, self, **options)
@cached_property
def test(self):
"""A test client for this application"""
def test_client(self):
"""Creates a test client for this application"""
from werkzeug import Client
return Client(self, self.response_class, use_cookies=True)