forked from orbit-oss/flask
remove deprecated Request.module
This commit is contained in:
parent
d63c2bc417
commit
723e665004
3 changed files with 19 additions and 49 deletions
|
|
@ -9,8 +9,6 @@
|
|||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
|
||||
import flask
|
||||
|
||||
|
||||
|
|
@ -26,14 +24,3 @@ class TestRequestDeprecation(object):
|
|||
|
||||
client.post('/', data='{"spam": 42}', content_type='application/json')
|
||||
recwarn.pop(DeprecationWarning)
|
||||
|
||||
def test_request_module(self, recwarn, app, client):
|
||||
"""Request.module is deprecated"""
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
assert flask.request.module is None
|
||||
return 'OK'
|
||||
|
||||
client.get('/')
|
||||
recwarn.pop(DeprecationWarning)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue