Revert files those fixed for flake problems.
This commit is contained in:
parent
81494453b0
commit
9bdf7a9980
|
@ -266,3 +266,4 @@ def test_keep_alive_server_timeout():
|
|||
assert isinstance(exception, ValueError)
|
||||
assert "Connection reset" in exception.args[0] or \
|
||||
"got a new connection" in exception.args[0]
|
||||
|
||||
|
|
|
@ -75,7 +75,6 @@ def test_middleware_response_exception():
|
|||
assert response.text == 'OK'
|
||||
assert result['status_code'] == 404
|
||||
|
||||
|
||||
def test_middleware_override_request():
|
||||
app = Sanic('test_middleware_override_request')
|
||||
|
||||
|
@ -110,6 +109,7 @@ def test_middleware_override_response():
|
|||
assert response.text == 'OK'
|
||||
|
||||
|
||||
|
||||
def test_middleware_order():
|
||||
app = Sanic('test_middleware_order')
|
||||
|
||||
|
|
|
@ -20,8 +20,7 @@ def test_storage():
|
|||
|
||||
@app.route('/')
|
||||
def handler(request):
|
||||
return json({'user': request.get('user'),
|
||||
'sidekick': request.get('sidekick')})
|
||||
return json({'user': request.get('user'), 'sidekick': request.get('sidekick')})
|
||||
|
||||
request, response = app.test_client.get('/')
|
||||
|
||||
|
|
|
@ -188,8 +188,7 @@ def test_request_stream_handle_exception():
|
|||
# 405
|
||||
request, response = app.test_client.get('/post/random_id', data=data)
|
||||
assert response.status == 405
|
||||
assert response.text == \
|
||||
'Error: Method GET not allowed for URL /post/random_id'
|
||||
assert response.text == 'Error: Method GET not allowed for URL /post/random_id'
|
||||
|
||||
|
||||
def test_request_stream_blueprint():
|
||||
|
|
Loading…
Reference in New Issue
Block a user