Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

chore(tests): use new unittest.mock from the standard library#351

Merged
daniel-sanche merged 4 commits intogoogleapis:mainfrom
a-detiste:main
Nov 20, 2025
Merged

chore(tests): use new unittest.mock from the standard library#351
daniel-sanche merged 4 commits intogoogleapis:mainfrom
a-detiste:main

Conversation

@a-detiste
Copy link
Copy Markdown
Contributor

Fixes #207 🦕 (#207)

mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards.

https://github.com/testing-cabal/mock

@a-detiste a-detiste requested review from a team May 10, 2024 09:27
@product-auto-label product-auto-label Bot added the size: xs Pull request size is extra small. label May 10, 2024
@mgorny
Copy link
Copy Markdown
Contributor

mgorny commented Apr 23, 2025

Thanks for doing this! Unfortunate that they just don't care.

@parthea parthea changed the title use new unittest.mock from the standard library testsuse new unittest.mock from the standard library Apr 23, 2025
@parthea parthea changed the title testsuse new unittest.mock from the standard library tests: use new unittest.mock from the standard library Apr 23, 2025
@daniel-sanche daniel-sanche merged commit 631ac72 into googleapis:main Nov 20, 2025
15 of 16 checks passed
@daniel-sanche daniel-sanche changed the title tests: use new unittest.mock from the standard library chore(tests): use new unittest.mock from the standard library Nov 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use unittest.mock instead of mock

6 participants