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: use unittest.mock #1320

Merged
merged 5 commits into from
May 22, 2022
Merged

test: use unittest.mock #1320

merged 5 commits into from
May 22, 2022

Conversation

parthea
Copy link
Contributor

@parthea parthea commented May 19, 2022

mock is deprecated and it’s recommended to use unittest.mock. unittest.mock is available from python 3.3.

unittest.mock.AsyncMock is only available from python 3.8+ so we need to use the asyncmock package for python<3.8

Fixes googleapis/python-bigquery-connection#212
Fixes googleapis/python-security-private-ca#231
Fixes googleapis/python-billing#182
Fixes googleapis/python-bigquery-reservation#267
Fixes googleapis/python-deploy#75
Fixes googleapis/python-firestore#576
Fixes googleapis/python-dlp#389
Fixes googleapis/python-asset#427

@parthea parthea force-pushed the use-mock-from-unittest branch from 595b0a6 to 4c55fac Compare May 19, 2022 18:47
@parthea parthea marked this pull request as ready for review May 19, 2022 21:32
@parthea parthea requested review from a team as code owners May 19, 2022 21:32
@parthea parthea requested a review from atulep May 19, 2022 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment