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: fix unit tests so they can work in g3 #714

Merged
merged 4 commits into from
Mar 8, 2021
Merged

fix: fix unit tests so they can work in g3 #714

merged 4 commits into from
Mar 8, 2021

Conversation

arithmetic1728
Copy link
Contributor

@arithmetic1728 arithmetic1728 commented Mar 6, 2021

(1) It seems class method mock doesn't work in g3 if autospec=True is used.
(2) request.call_args.kwargs doesn't work in g3, should use request.call_args[1] instead

@arithmetic1728 arithmetic1728 requested a review from a team as a code owner March 6, 2021 00:12
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 6, 2021
@arithmetic1728 arithmetic1728 changed the title fix: class method mock not working well with g3 test fix: fix unit tests so they can work in g3 Mar 6, 2021
@arithmetic1728 arithmetic1728 added the automerge Merge the pull request once unit tests and other checks pass. label Mar 8, 2021
@arithmetic1728 arithmetic1728 merged commit d80c85f into master Mar 8, 2021
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants