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

Translate mock-examples#827

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

Merged
ken71301 merged 6 commits intopython:3.12fromken71301:mock-example
Mar 26, 2024
Merged

Conversation

@ken71301
Copy link
Collaborator

No description provided.

@ken71301ken71301 marked this pull request as ready for reviewMarch 12, 2024 13:52
@cschan1828cschan1828 self-assigned thisMar 23, 2024
"could then cause problems if you do assertions that rely on object identity "
"for equality."
msgstr""
"一種可能是讓 mock 複製你傳入的引數。如果你為了相等性執行依賴於物件識別性的斷"
Copy link
Collaborator

Choose a reason for hiding this comment

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

"一種可能是讓 mock 複製你傳入的引數。如果你進行的斷言依賴於物件身份來確定相等性,這就可能導致問題。"

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

順便問一下現在 identity 有定型的翻譯嗎~

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

我 identity 先翻 識別性

Copy link
Collaborator

@cschan1828cschan1828 left a comment

Choose a reason for hiding this comment

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

Initial review completed.

"*spec* (or *spec_set*) argument so that the ``MagicMock`` created only has "
"dictionary magic methods available:"
msgstr""
"*第三個*/ 選擇是使用 ``MagicMock``,但傳入 ``dict`` 作為 *spec*(或"
Copy link
Collaborator

@cschan1828cschan1828Mar 25, 2024
edited
Loading

Choose a reason for hiding this comment

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

這邊應該是用\\

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

耍笨了,晚點來改

in 1019: 原文沒有不,但下面的範例沒有使用magicmock,我覺得這樣翻會比較順
Copy link
Collaborator

@cschan1828cschan1828 left a comment

Choose a reason for hiding this comment

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

LGTM, Approval.

ken71301 reacted with thumbs up emoji
@ken71301ken71301enabled auto-merge (squash)March 26, 2024 12:59
@ken71301ken71301 merged commit8af0ec0 intopython:3.12Mar 26, 2024
@ken71301ken71301 deleted the mock-example branchMarch 26, 2024 13:25
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@cschan1828cschan1828cschan1828 approved these changes

Assignees

@cschan1828cschan1828

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ken71301@cschan1828

[8]ページ先頭

©2009-2025 Movatter.jp