-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix some words and render problem (#803)
- Loading branch information
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ msgstr "" | |
"Project-Id-Version: Python 3.12\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-12-16 00:03+0000\n" | ||
"PO-Revision-Date: 2024-01-12 08:51+0800\n" | ||
"PO-Revision-Date: 2024-01-17 15:22+0800\n" | ||
"Last-Translator: Adrian Liaw <[email protected]>\n" | ||
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" | ||
"tw)\n" | ||
|
@@ -811,8 +811,8 @@ msgid "" | |
msgstr "" | ||
"這適用於 :meth:`~Mock.assert_called_with`、:meth:`~Mock." | ||
"assert_called_once_with`、:meth:`~Mock.assert_has_calls` 和 :meth:`~Mock." | ||
"assert_any_call`。在使用 :ref:`auto-speccing` ,它還適用於 mock 物件的方法呼" | ||
"叫。" | ||
"assert_any_call`。在使用 :ref:`auto-speccing` 時,它還適用於 mock 物件的方法" | ||
"呼叫。" | ||
|
||
#: ../../library/unittest.mock.rst:817 | ||
msgid "Added signature introspection on specced and autospecced mock objects." | ||
|
@@ -1129,9 +1129,9 @@ msgid "" | |
"creation time. There are two alternatives. One option is to use :meth:`~Mock." | ||
"configure_mock`::" | ||
msgstr "" | ||
"由於 \"name\" 是傳遞給 :class:`Mock` 建構函式的引數,如果你想讓你的 mock 物件擁" | ||
"有 \"name\" 屬性,你不能在建立時直接傳遞它。有兩種替代方法。其中一個選擇是使" | ||
"用 :meth:`~Mock.configure_mock`: ::" | ||
"由於 \"name\" 是傳遞給 :class:`Mock` 建構函式的引數,如果你想讓你的 mock 物件" | ||
"擁有 \"name\" 屬性,你不能在建立時直接傳遞它。有兩種替代方法。其中一個選擇是" | ||
"使用 :meth:`~Mock.configure_mock`: ::" | ||
|
||
#: ../../library/unittest.mock.rst:1258 | ||
msgid "" | ||
|
@@ -1187,8 +1187,8 @@ msgid "" | |
msgstr "" | ||
"唯一的例外是魔術方法和屬性(具有前後雙底線)。Mock 不會建立這些,而是會引發 :" | ||
"exc:`AttributeError`。這是因為直譯器通常會隱式地要求這些方法,在期望得到一個" | ||
"魔術方法卻獲得一個新的 Mock 物件時,會讓直譯器*非常*困惑。如果你需要魔術方法" | ||
"的支援,請參閱\\ :ref:`魔術方法 <magic-methods>`。" | ||
"魔術方法卻獲得一個新的 Mock 物件時,會讓直譯器\\ *非常*\\ 困惑。如果你需要魔" | ||
"術方法的支援,請參閱\\ :ref:`魔術方法 <magic-methods>`。" | ||
|
||
#: ../../library/unittest.mock.rst:1323 | ||
msgid "The patchers" | ||
|
@@ -1266,7 +1266,7 @@ msgid "" | |
"In addition you can pass ``spec=True`` or ``spec_set=True``, which causes " | ||
"patch to pass in the object being mocked as the spec/spec_set object." | ||
msgstr "" | ||
"此外,你還可以傳遞 ``spec=True``或 ``spec_set=True``,這將導致 patch 將被 " | ||
"此外,你還可以傳遞 ``spec=True`` 或 ``spec_set=True``,這將導致 patch 將被 " | ||
"mock 的物件作為 spec/spec_set 物件傳遞。" | ||
|
||
#: ../../library/unittest.mock.rst:1365 | ||
|
@@ -1352,19 +1352,19 @@ msgid "" | |
"\"as\" then the patched object will be bound to the name after the \"as\"; " | ||
"very useful if :func:`patch` is creating a mock object for you." | ||
msgstr "" | ||
"透過 with 陳述式,Patch 可以做為情境管理器使用。 patch 適用於 with 陳述式之後" | ||
"的縮排區塊。 如果你使用 \"as\",則被 patch 的物件將被綁定到 \"as\" 後面的名" | ||
"稱; 如果 :func:`patch` 正在為你建立一個 mock 物件,這會非常有用。" | ||
"透過 with 陳述式,Patch 可以做為情境管理器使用。patch 適用於 with 陳述式之後" | ||
"的縮排區塊。如果你使用 \"as\",則被 patch 的物件將被綁定到 \"as\" 後面的名" | ||
"稱;如果 :func:`patch` 正在為你建立一個 mock 物件,這會非常有用。" | ||
|
||
#: ../../library/unittest.mock.rst:1408 | ||
msgid "" | ||
":func:`patch` takes arbitrary keyword arguments. These will be passed to :" | ||
"class:`AsyncMock` if the patched object is asynchronous, to :class:" | ||
"`MagicMock` otherwise or to *new_callable* if specified." | ||
msgstr "" | ||
":func:`patch` 接受任意的關鍵字引數。 如果被 patch 的物件是非同步的,這些將會" | ||
"被傳遞給 :class:`AsyncMock`,如果是同步的則會傳遞給 :class:`MagicMock`,或如" | ||
"果指定了 *new_callable*,則傳遞給它。" | ||
":func:`patch` 接受任意的關鍵字引數。如果被 patch 的物件是非同步的,這些將會被" | ||
"傳遞給 :class:`AsyncMock`,如果是同步的則會傳遞給 :class:`MagicMock`,或如果" | ||
"指定了 *new_callable*,則傳遞給它。" | ||
|
||
#: ../../library/unittest.mock.rst:1412 | ||
msgid "" | ||
|
@@ -1405,8 +1405,8 @@ msgid "" | |
"To configure return values on methods of *instances* on the patched class " | ||
"you must do this on the :attr:`return_value`. For example::" | ||
msgstr "" | ||
"若要配置被 patch 的類別的\\ *實例*\\ 方法的回傳值,你必須在 :attr:`return_value` 上" | ||
"進行配置。 例如: ::" | ||
"若要配置被 patch 的類別的\\ *實例*\\ 方法的回傳值,你必須在 :attr:" | ||
"`return_value` 上進行配置。 例如: ::" | ||
|
||
#: ../../library/unittest.mock.rst:1447 | ||
msgid "" | ||
|