-
-
Notifications
You must be signed in to change notification settings - Fork 216
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
library/unittest.mock-examples.po
Outdated
|
||
#: ../../library/unittest.mock-examples.rst:858 | ||
msgid "" | ||
"One possibility would be for mock to copy the arguments you pass in. This " | ||
"could then cause problems if you do assertions that rely on object identity " | ||
"for equality." | ||
msgstr "" | ||
"一種可能是讓 mock 複製你傳入的引數。如果你為了相等性執行依賴於物件識別性的斷" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"一種可能是讓 mock 複製你傳入的引數。如果你進行的斷言依賴於物件身份來確定相等性,這就可能導致問題。"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
順便問一下現在 identity 有定型的翻譯嗎~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我 identity 先翻 識別性
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial review completed.
library/unittest.mock-examples.po
Outdated
|
||
#: ../../library/unittest.mock-examples.rst:1026 | ||
msgid "" | ||
"A *third* option is to use ``MagicMock`` but passing in ``dict`` as the " | ||
"*spec* (or *spec_set*) argument so that the ``MagicMock`` created only has " | ||
"dictionary magic methods available:" | ||
msgstr "" | ||
"*第三個*/ 選擇是使用 ``MagicMock``,但傳入 ``dict`` 作為 *spec*(或" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這邊應該是用 \\
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
耍笨了,晚點來改
in 1019: 原文沒有不,但下面的範例沒有使用magicmock,我覺得這樣翻會比較順
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Approval.
No description provided.