More DRYing up the test suite (#2325)

This commit is contained in:
Christian Stade-Schuldt 2017-05-24 17:27:36 -07:00 committed by David Lord
parent 50c6df7098
commit 4ec1fbc9f5
10 changed files with 230 additions and 283 deletions

View file

@ -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():