Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flask_restplus_patched to have a possibility to use non model … #37

Merged
merged 1 commit into from
Oct 10, 2016

Conversation

khorolets
Copy link
Collaborator

Update flask_restplus_patched to have a possibility to use non model Schemas to response with code 200

@@ -138,13 +140,13 @@ def dump_wrapper(*args, **kwargs):
# pylint: disable=missing-docstring
response = func(*args, **kwargs)

if isinstance(response, flask.Response):
if isinstance(response, flask.Response) or model is None:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch, HTTP/204 tests failed... We need to move this whole if after the elif (so this if will become elif, and that elif will be if).

@coveralls
Copy link

coveralls commented Oct 10, 2016

Coverage Status

Coverage remained the same at 91.386% when pulling 44d1aeb on khorolets:allow_use_nonmodel_schemas into 64bc2ad on frol:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.386% when pulling 44d1aeb on khorolets:allow_use_nonmodel_schemas into 64bc2ad on frol:master.


elif response is None:
if code == HTTPStatus.NO_CONTENT:
if response is None:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, remove one blank line above.

@frol frol merged commit 5fd22f9 into frol:master Oct 10, 2016
@khorolets khorolets deleted the allow_use_nonmodel_schemas branch October 10, 2016 06:45
@coveralls
Copy link

coveralls commented Oct 10, 2016

Coverage Status

Coverage remained the same at 91.386% when pulling 85c675b on khorolets:allow_use_nonmodel_schemas into 64bc2ad on frol:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.386% when pulling 85c675b on khorolets:allow_use_nonmodel_schemas into 64bc2ad on frol:master.

frol pushed a commit that referenced this pull request Dec 7, 2016
Cover get token, refresh token processes. Cover invalid credentials or invalid data tries to get token
`view.py:authorize()` is left uncovered and revoke token is uncovered because of bug in `flask-oauthlib`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants