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

test: Support running the test suite without oauth2client #2021

Merged
merged 3 commits into from
Jan 5, 2023

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Jan 5, 2023

Make it possible to run the test suite without oauth2client, by skipping the few tests that specifically require it. Given that oauth2client is deprecated, we are aiming towards removing it entirely from Gentoo and the unconditional imports in the test suite are a blocker for that.

I've also added running without oauth2client as an additional nox scenarios but I can remove that if you prefer.

mgorny added 3 commits January 5, 2023 10:17
Remove the inheritance of MockCredentials from oauth2client.Credentials.
This is unnecessary, and removing it makes it possible to run
the respective tests without oauth2client installed.
Make it possible to run the test suite without oauth2client, by skipping
the few tests that specifically require it.  Given that oauth2client
is deprecated, we are aiming towards removing it entirely from Gentoo
and the unconditional imports in the test suite are a blocker for that.
@mgorny mgorny requested a review from a team as a code owner January 5, 2023 09:38
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Jan 5, 2023
@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 5, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 5, 2023
@parthea parthea added kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jan 5, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 5, 2023
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 5, 2023
Copy link
Contributor

@parthea parthea left a comment

Choose a reason for hiding this comment

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

Thanks @mgorny!

@parthea parthea merged commit fbacd50 into googleapis:main Jan 5, 2023
@mgorny
Copy link
Contributor Author

mgorny commented Jan 5, 2023

Thanks a lot!

@mgorny mgorny deleted the oauth2client-optional branch January 5, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants