Added tests for minitwit. Testing with Flask is awesome
This commit is contained in:
parent
03168a5d53
commit
f2dc38cda6
4 changed files with 153 additions and 4 deletions
5
flask.py
5
flask.py
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue