Skip to content

Conversation

@ken71301
Copy link
Collaborator

No description provided.

@ken71301 ken71301 marked this pull request as ready for review March 12, 2024 13:52
@cschan1828 cschan1828 self-assigned this Mar 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
Collaborator Author

Choose a reason for hiding this comment

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

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

我 identity 先翻 識別性

Copy link
Collaborator

@cschan1828 cschan1828 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.

@ken71301 ken71301 requested a review from cschan1828 March 25, 2024 12:56
"*spec* (or *spec_set*) argument so that the ``MagicMock`` created only has "
"dictionary magic methods available:"
msgstr ""
"*第三個*/ 選擇是使用 ``MagicMock``,但傳入 ``dict`` 作為 *spec*(或"
Copy link
Collaborator

@cschan1828 cschan1828 Mar 25, 2024

Choose a reason for hiding this comment

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

這邊應該是用 \\

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

耍笨了,晚點來改

in 1019: 原文沒有不,但下面的範例沒有使用magicmock,我覺得這樣翻會比較順
@cschan1828 cschan1828 self-requested a review March 26, 2024 12:57
Copy link
Collaborator

@cschan1828 cschan1828 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 ken71301 enabled auto-merge (squash) March 26, 2024 12:59
@ken71301 ken71301 merged commit 8af0ec0 into python:3.12 Mar 26, 2024
@ken71301 ken71301 deleted the mock-example branch March 26, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants