Added direct test cases with and w/o flask.Response

This commit is contained in:
Valentín Gutiérrez
2016-02-03 11:05:39 +01:00
committed by Rafael Caricio
parent 678fbf792e
commit b28cd87fe5
3 changed files with 38 additions and 0 deletions

View File

@@ -613,3 +613,15 @@ def test_required_param_miss_config(app):
resp = app_client.get('/v1.0/test-required-param')
assert resp.status_code == 400
def test_redirect_endpoint(app):
app_client = app.app.test_client()
resp = app_client.get('/v1.0/test-redirect-endpoint')
assert resp.status_code == 302
def test_redirect_response_endpoint(app):
app_client = app.app.test_client()
resp = app_client.get('/v1.0/test-redirect-response-endpoint')
assert resp.status_code == 302