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

fix: Add functools.wraps decorator #179

Merged
merged 3 commits into from
May 10, 2022

Conversation

svleeuwen
Copy link
Contributor

To make sure function attributes are copied to _http_view_func_wrapper

To make sure function attributes are copied to `_http_view_func_wrapper`
@svleeuwen svleeuwen changed the title Add functools.wraps decorator fix: Add functools.wraps decorator Apr 1, 2022
@anniefu
Copy link
Contributor

anniefu commented Apr 8, 2022

It seems the unit test failures are related to this PR, though it's unclear to me why the change is causing cloudevent functions to fail...

@svleeuwen
Copy link
Contributor Author

@anniefu that test is also failing in master, so it's indeed not caused by this change.

@anniefu
Copy link
Contributor

anniefu commented Apr 15, 2022

Hmm, it seems one of our dependency libraries has changed their error message causing an assertion to fail. I'll take a pass at fixing it up. Thanks for your patience.

@anniefu
Copy link
Contributor

anniefu commented May 4, 2022

Hey @svleeuwen, I've fixed the tests up and rebased the PR. Do you have the ability to merge this? I can do it otherwise. Thanks again for the contribution!

@svleeuwen
Copy link
Contributor Author

@anniefu I don't have write access so I can't merge it.

@anniefu anniefu merged commit f2285f9 into GoogleCloudPlatform:master May 10, 2022
@svleeuwen svleeuwen deleted the patch-1 branch May 12, 2022 07:22
@anniefu anniefu linked an issue Jun 7, 2022 that may be closed by this pull request
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.

Function _http_view_func_wrapper should use @functools.wraps
2 participants