Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb813391

Browse files
authored
fix: fix some words and render problem (#803)
1 parentda79861 commitb813391

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

‎library/unittest.mock.po

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgstr ""
77
"Project-Id-Version:Python 3.12\n"
88
"Report-Msgid-Bugs-To:\n"
99
"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"
1111
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1313
"tw)\n"
@@ -811,8 +811,8 @@ msgid ""
811811
msgstr""
812812
"這適用於 :meth:`~Mock.assert_called_with`、:meth:`~Mock."
813813
"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+
"呼叫。"
816816

817817
#:../../library/unittest.mock.rst:817
818818
msgid"Added signature introspection on specced and autospecced mock objects."
@@ -1129,9 +1129,9 @@ msgid ""
11291129
"creation time. There are two alternatives. One option is to use :meth:`~Mock."
11301130
"configure_mock`::"
11311131
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`: ::"
11351135

11361136
#:../../library/unittest.mock.rst:1258
11371137
msgid""
@@ -1187,8 +1187,8 @@ msgid ""
11871187
msgstr""
11881188
"唯一的例外是魔術方法和屬性(具有前後雙底線)。Mock 不會建立這些,而是會引發 :"
11891189
"exc:`AttributeError`。這是因為直譯器通常會隱式地要求這些方法,在期望得到一個"
1190-
"魔術方法卻獲得一個新的 Mock 物件時,會讓直譯器*非常*困惑。如果你需要魔術方法"
1191-
"的支援,請參閱\\ :ref:`魔術方法 <magic-methods>`。"
1190+
"魔術方法卻獲得一個新的 Mock 物件時,會讓直譯器\\*非常*\\困惑。如果你需要魔"
1191+
"術方法的支援,請參閱\\ :ref:`魔術方法 <magic-methods>`。"
11921192

11931193
#:../../library/unittest.mock.rst:1323
11941194
msgid"The patchers"
@@ -1266,7 +1266,7 @@ msgid ""
12661266
"In addition you can pass ``spec=True`` or ``spec_set=True``, which causes "
12671267
"patch to pass in the object being mocked as the spec/spec_set object."
12681268
msgstr""
1269-
"此外,你還可以傳遞 ``spec=True``或 ``spec_set=True``,這將導致 patch 將被 "
1269+
"此外,你還可以傳遞 ``spec=True``或 ``spec_set=True``,這將導致 patch 將被 "
12701270
"mock 的物件作為 spec/spec_set 物件傳遞。"
12711271

12721272
#:../../library/unittest.mock.rst:1365
@@ -1352,19 +1352,19 @@ msgid ""
13521352
"\"as\" then the patched object will be bound to the name after the\"as\"; "
13531353
"very useful if :func:`patch` is creating a mock object for you."
13541354
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 物件,這會非常有用。"
13581358

13591359
#:../../library/unittest.mock.rst:1408
13601360
msgid""
13611361
":func:`patch` takes arbitrary keyword arguments. These will be passed to :"
13621362
"class:`AsyncMock` if the patched object is asynchronous, to :class:"
13631363
"`MagicMock` otherwise or to *new_callable* if specified."
13641364
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*,則傳遞給它。"
13681368

13691369
#:../../library/unittest.mock.rst:1412
13701370
msgid""
@@ -1405,8 +1405,8 @@ msgid ""
14051405
"To configure return values on methods of *instances* on the patched class "
14061406
"you must do this on the :attr:`return_value`. For example::"
14071407
msgstr""
1408-
"若要配置被 patch 的類別的\\ *實例*\\ 方法的回傳值,你必須在 :attr:`return_value` 上"
1409-
"進行配置。 例如: ::"
1408+
"若要配置被 patch 的類別的\\ *實例*\\ 方法的回傳值,你必須在 :attr:"
1409+
"`return_value` 上進行配置。 例如: ::"
14101410

14111411
#:../../library/unittest.mock.rst:1447
14121412
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp