mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-09 20:37:46 +00:00
Added direct test cases with and w/o flask.Response
This commit is contained in:
committed by
Rafael Caricio
parent
678fbf792e
commit
b28cd87fe5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user