Skip to content

Commit cbfaa01

Browse files
committed
fix: for third review
1 parent e73dde7 commit cbfaa01

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

library/unittest.mock-examples.po

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2023-09-09 00:03+0000\n"
11-
"PO-Revision-Date: 2024-01-24 18:12+0800\n"
11+
"PO-Revision-Date: 2024-01-26 19:03+0800\n"
1212
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1414
"tw)\n"
@@ -291,9 +291,9 @@ msgid ""
291291
"function. The function will be called with the same arguments as the mock. "
292292
"Whatever the function returns is what the call returns:"
293293
msgstr ""
294-
"對於更進階的使用案例,例如根據 mock 被呼叫的內容動態變更回傳值,"
295-
"可以將 ``side_effect`` 設成一個函式。該函式會使用與 mock 相同的引數被呼叫。函式回"
296-
"傳的內容就會是呼叫回傳的內容:"
294+
"對於更進階的使用案例,例如根據 mock 被呼叫的內容動態變更回傳值,可以將 "
295+
"``side_effect`` 設成一個函式。該函式會使用與 mock 相同的引數被呼叫。函式回傳"
296+
"的內容就會是呼叫回傳的內容:"
297297

298298
#: ../../library/unittest.mock-examples.rst:281
299299
msgid "Mocking asynchronous iterators"
@@ -438,7 +438,7 @@ msgstr ""
438438
"func:`patch.dict`。``patch`` 接受單一字串,格式為 ``package.module.Class."
439439
"attribute``,用來指定要 patch 的屬性。同時它也可以接受你想要替換的屬性(或類"
440440
"別或其他)的值。``patch.object`` 接受一個物件和你想要 patch 的屬性的名稱,同"
441-
"時接受要 patch 的值。"
441+
"時也可以接受要 patch 的值。"
442442

443443
#: ../../library/unittest.mock-examples.rst:412
444444
msgid "``patch.object``::"
@@ -483,8 +483,8 @@ msgid ""
483483
"above the mock for ``test_module.ClassName2`` is passed in first."
484484
msgstr ""
485485
"當你巢狀使用 patch 裝飾器時,mock 傳遞到被裝飾函式的順序會跟其被應用的順序相"
486-
"同(一般 *Python* 應用裝飾器的順序)。這意味著由下而上,因此在上面的範例"
487-
"中,\\ ``module.ClassName2`` 的 mock 會先被傳入。"
486+
"同(一般 *Python* 應用裝飾器的順序)。這意味著由下而上,因此在上面的範例中,"
487+
"``module.ClassName2`` 的 mock 會先被傳入。"
488488

489489
#: ../../library/unittest.mock-examples.rst:487
490490
msgid ""
@@ -603,7 +603,7 @@ msgid ""
603603
"We can do that in a slightly nicer way using the :meth:`~Mock."
604604
"configure_mock` method to directly set the return value for us::"
605605
msgstr ""
606-
"我們可以使用 :meth:`~Mock.configure_mock` 方法來以稍為好一點的方式為我們直接"
606+
"我們可以使用 :meth:`~Mock.configure_mock` 方法來以稍微好一點的方式為我們直接"
607607
"設定回傳值: ::"
608608

609609
#: ../../library/unittest.mock-examples.rst:584

0 commit comments

Comments
 (0)