@@ -7,7 +7,7 @@ msgstr ""
7
7
"Project-Id-Version : Python 3.12\n "
8
8
"Report-Msgid-Bugs-To : \n "
9
9
"POT-Creation-Date : 2023-12-16 00:03+0000\n "
10
- "PO-Revision-Date : 2024-01-12 08:51 +0800\n "
10
+ "PO-Revision-Date : 2024-01-17 15:22 +0800\n "
11
11
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
12
12
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
13
13
"tw)\n "
@@ -811,8 +811,8 @@ msgid ""
811
811
msgstr ""
812
812
"這適用於 :meth:`~Mock.assert_called_with`、:meth:`~Mock."
813
813
"assert_called_once_with`、:meth:`~Mock.assert_has_calls` 和 :meth:`~Mock."
814
- "assert_any_call`。在使用 :ref:`auto-speccing` ,它還適用於 mock 物件的方法呼 "
815
- "叫 。"
814
+ "assert_any_call`。在使用 :ref:`auto-speccing` 時 ,它還適用於 mock 物件的方法 "
815
+ "呼叫 。"
816
816
817
817
#: ../../library/unittest.mock.rst:817
818
818
msgid "Added signature introspection on specced and autospecced mock objects."
@@ -1129,9 +1129,9 @@ msgid ""
1129
1129
"creation time. There are two alternatives. One option is to use :meth:`~Mock."
1130
1130
"configure_mock`::"
1131
1131
msgstr ""
1132
- "由於 \" name\" 是傳遞給 :class:`Mock` 建構函式的引數,如果你想讓你的 mock 物件擁 "
1133
- "有 \" name\" 屬性,你不能在建立時直接傳遞它。有兩種替代方法。其中一個選擇是使 "
1134
- "用 :meth:`~Mock.configure_mock`: ::"
1132
+ "由於 \" name\" 是傳遞給 :class:`Mock` 建構函式的引數,如果你想讓你的 mock 物件 "
1133
+ "擁有 \" name\" 屬性,你不能在建立時直接傳遞它。有兩種替代方法。其中一個選擇是 "
1134
+ "使用 :meth:`~Mock.configure_mock`: ::"
1135
1135
1136
1136
#: ../../library/unittest.mock.rst:1258
1137
1137
msgid ""
@@ -1187,8 +1187,8 @@ msgid ""
1187
1187
msgstr ""
1188
1188
"唯一的例外是魔術方法和屬性(具有前後雙底線)。Mock 不會建立這些,而是會引發 :"
1189
1189
"exc:`AttributeError`。這是因為直譯器通常會隱式地要求這些方法,在期望得到一個"
1190
- "魔術方法卻獲得一個新的 Mock 物件時,會讓直譯器*非常*困惑。如果你需要魔術方法 "
1191
- "的支援 ,請參閱\\ :ref:`魔術方法 <magic-methods>`。"
1190
+ "魔術方法卻獲得一個新的 Mock 物件時,會讓直譯器\\ *非常*\\ 困惑。如果你需要魔 "
1191
+ "術方法的支援 ,請參閱\\ :ref:`魔術方法 <magic-methods>`。"
1192
1192
1193
1193
#: ../../library/unittest.mock.rst:1323
1194
1194
msgid "The patchers"
@@ -1266,7 +1266,7 @@ msgid ""
1266
1266
"In addition you can pass ``spec=True`` or ``spec_set=True``, which causes "
1267
1267
"patch to pass in the object being mocked as the spec/spec_set object."
1268
1268
msgstr ""
1269
- "此外,你還可以傳遞 ``spec=True``或 ``spec_set=True``,這將導致 patch 將被 "
1269
+ "此外,你還可以傳遞 ``spec=True`` 或 ``spec_set=True``,這將導致 patch 將被 "
1270
1270
"mock 的物件作為 spec/spec_set 物件傳遞。"
1271
1271
1272
1272
#: ../../library/unittest.mock.rst:1365
@@ -1352,19 +1352,19 @@ msgid ""
1352
1352
"\" as\" then the patched object will be bound to the name after the \" as\" ; "
1353
1353
"very useful if :func:`patch` is creating a mock object for you."
1354
1354
msgstr ""
1355
- "透過 with 陳述式,Patch 可以做為情境管理器使用。 patch 適用於 with 陳述式之後"
1356
- "的縮排區塊。 如果你使用 \" as\" ,則被 patch 的物件將被綁定到 \" as\" 後面的名"
1357
- "稱; 如果 :func:`patch` 正在為你建立一個 mock 物件,這會非常有用。"
1355
+ "透過 with 陳述式,Patch 可以做為情境管理器使用。patch 適用於 with 陳述式之後"
1356
+ "的縮排區塊。如果你使用 \" as\" ,則被 patch 的物件將被綁定到 \" as\" 後面的名"
1357
+ "稱;如果 :func:`patch` 正在為你建立一個 mock 物件,這會非常有用。"
1358
1358
1359
1359
#: ../../library/unittest.mock.rst:1408
1360
1360
msgid ""
1361
1361
":func:`patch` takes arbitrary keyword arguments. These will be passed to :"
1362
1362
"class:`AsyncMock` if the patched object is asynchronous, to :class:"
1363
1363
"`MagicMock` otherwise or to *new_callable* if specified."
1364
1364
msgstr ""
1365
- ":func:`patch` 接受任意的關鍵字引數。 如果被 patch 的物件是非同步的,這些將會 "
1366
- "被傳遞給 :class:`AsyncMock`,如果是同步的則會傳遞給 :class:`MagicMock`,或如 "
1367
- "果指定了 *new_callable*,則傳遞給它。"
1365
+ ":func:`patch` 接受任意的關鍵字引數。如果被 patch 的物件是非同步的,這些將會被 "
1366
+ "傳遞給 :class:`AsyncMock`,如果是同步的則會傳遞給 :class:`MagicMock`,或如果 "
1367
+ "指定了 *new_callable*,則傳遞給它。"
1368
1368
1369
1369
#: ../../library/unittest.mock.rst:1412
1370
1370
msgid ""
@@ -1405,8 +1405,8 @@ msgid ""
1405
1405
"To configure return values on methods of *instances* on the patched class "
1406
1406
"you must do this on the :attr:`return_value`. For example::"
1407
1407
msgstr ""
1408
- "若要配置被 patch 的類別的\\ *實例*\\ 方法的回傳值,你必須在 :attr:`return_value` 上 "
1409
- "進行配置 。 例如: ::"
1408
+ "若要配置被 patch 的類別的\\ *實例*\\ 方法的回傳值,你必須在 :attr:"
1409
+ "`return_value` 上進行配置 。 例如: ::"
1410
1410
1411
1411
#: ../../library/unittest.mock.rst:1447
1412
1412
msgid ""
0 commit comments