mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-09 12:27:46 +00:00
New style of passing options to Connexion (#436)
* Order classes by relevance in module * Order definitions by relevance within module * Swagger UI options extracted * New style options * Use new-style options * Reuse code * Sort imports * Ignore typing imports * Warn users about parameter name change * Add back isort check * Fix isort check
This commit is contained in:
committed by
Henning Jacobs
parent
19e0b37194
commit
93c06711ed
@@ -4,8 +4,8 @@ from connexion import FlaskApp
|
||||
|
||||
|
||||
def test_security_over_inexistent_endpoints(oauth_requests, secure_api_spec_dir):
|
||||
app1 = FlaskApp(__name__, 5001, secure_api_spec_dir, swagger_ui=False,
|
||||
debug=True, auth_all_paths=True)
|
||||
app1 = FlaskApp(__name__, port=5001, specification_dir=secure_api_spec_dir,
|
||||
swagger_ui=False, debug=True, auth_all_paths=True)
|
||||
app1.add_api('swagger.yaml')
|
||||
assert app1.port == 5001
|
||||
|
||||
@@ -74,7 +74,8 @@ def test_security(oauth_requests, secure_endpoint_app):
|
||||
assert response.status_code == 200
|
||||
|
||||
headers = {"Authorization": "Bearer 100"}
|
||||
get_bye_good_auth = app_client.get('/v1.0/byesecure-ignoring-context/hjacobs', headers=headers) # type: flask.Response
|
||||
get_bye_good_auth = app_client.get('/v1.0/byesecure-ignoring-context/hjacobs',
|
||||
headers=headers) # type: flask.Response
|
||||
assert get_bye_good_auth.status_code == 200
|
||||
assert get_bye_good_auth.data == b'Goodbye hjacobs (Secure!)'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user