Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: Migrate from mock to unittest.mock#1361

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
clundin25 wants to merge5 commits intogoogleapis:main
base:main
Choose a base branch
Loading
fromclundin25:mock-update

Conversation

@clundin25
Copy link
Contributor

@clundin25clundin25 requested review froma team ascode ownersJuly 25, 2023 21:52
Copy link
Contributor

@BigTailWolfBigTailWolf left a comment

Choose a reason for hiding this comment

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

Great! One less dependency

@clundin25
Copy link
ContributorAuthor

Looks likemock.AsyncMock is gated by Python 3.8.

I'm considering if we should just gate the Async code to 3.8 in that case, since it's still in "Preview".

@sai-sunder-s@arithmetic1728@BigTailWolf thoughts?

@BigTailWolf
Copy link
Contributor

Looks likemock.AsyncMock is gated by Python 3.8.

I'm considering if we should just gate the Async code to 3.8 in that case, since it's still in "Preview".

@sai-sunder-s@arithmetic1728@BigTailWolf thoughts?

Do we currently have anyfrom unittest.mock import AsyncMock in any test?
I searched across ed the repo and didn't see one of them.

@clundin25
Copy link
ContributorAuthor

@BigTailWolf It's found in the following files:

❯ rg"AsyncMock" -ltests_async/oauth2/test__client_async.pytests_async/oauth2/test_id_token.pytests_async/oauth2/test_reauth_async.pytests_async/oauth2/test_service_account_async.pytests_async/oauth2/test_credentials_async.pytests_async/transport/test_aiohttp_requests.py

@dvzrv
Copy link

Hi! 👋

We are currently (finally) removing the python-mock package on Arch Linux.
I am therefore very interested in this getting merged and released. Are there still specific blockers?

a-detiste, carlsmedstad, and lfos reacted with thumbs up emoji

@lfos
Copy link

Are there any updates? It'd be great to get this updated and merged!

@musicinmybrain
Copy link

See also#1055,#1786.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@BigTailWolfBigTailWolfBigTailWolf approved these changes

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

use unittest.mock instead of mock

5 participants

@clundin25@BigTailWolf@dvzrv@lfos@musicinmybrain

[8]ページ先頭

©2009-2025 Movatter.jp