forked from orbit-oss/flask
More DRYing up the test suite (#2325)
This commit is contained in:
parent
50c6df7098
commit
4ec1fbc9f5
10 changed files with 230 additions and 283 deletions
|
|
@ -17,7 +17,6 @@ import flask
|
|||
class TestRequestDeprecation(object):
|
||||
def test_request_json(self, recwarn, app, client):
|
||||
"""Request.json is deprecated"""
|
||||
app.testing = True
|
||||
|
||||
@app.route('/', methods=['POST'])
|
||||
def index():
|
||||
|
|
@ -30,7 +29,6 @@ class TestRequestDeprecation(object):
|
|||
|
||||
def test_request_module(self, recwarn, app, client):
|
||||
"""Request.module is deprecated"""
|
||||
app.testing = True
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue