@@ -8,7 +8,7 @@ msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
10
"POT-Creation-Date : 2023-07-22 00:04+0000\n "
11
- "PO-Revision-Date : 2018-05-23 16:14+0000 \n "
11
+ "PO-Revision-Date : 2023-08-15 16:47+0800 \n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
14
"tw)\n "
@@ -17,6 +17,7 @@ msgstr ""
17
17
"Content-Type : text/plain; charset=UTF-8\n "
18
18
"Content-Transfer-Encoding : 8bit\n "
19
19
"Plural-Forms : nplurals=1; plural=0;\n "
20
+ "X-Generator : Poedit 3.3.2\n "
20
21
21
22
#: ../../library/unittest.mock.rst:3
22
23
msgid ":mod:`unittest.mock` --- mock object library"
@@ -32,6 +33,8 @@ msgid ""
32
33
"replace parts of your system under test with mock objects and make "
33
34
"assertions about how they have been used."
34
35
msgstr ""
36
+ ":mod:`unittest.mock` 在Python中是一個用於進行測試的函式庫。 它允許你用模擬對"
37
+ "象 (mock object) 在測試中替換部分系統,並斷言 (assert) 它們是如何被使用的。"
35
38
36
39
#: ../../library/unittest.mock.rst:21
37
40
msgid ""
@@ -41,6 +44,10 @@ msgid ""
41
44
"and arguments they were called with. You can also specify return values and "
42
45
"set needed attributes in the normal way."
43
46
msgstr ""
47
+ ":mod:`unittest.mock` 提供了一個以 :class:`mock` 為核心的類別,去除在測試中創"
48
+ "建大量 stubs 的需求。 在執行動作之後,你可以斷言 (assert) 哪些 method (方"
49
+ "法)/ 屬性被使用,以及哪些參數被呼叫。 你還可以用常規的方式指定回傳值與設定所"
50
+ "需的屬性。"
44
51
45
52
#: ../../library/unittest.mock.rst:27
46
53
msgid ""
0 commit comments