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

Commit8838a8d

Browse files
committed
fix: fix rST
1 parent1c93e8e commit8838a8d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎library/unittest.mock.po

Lines changed: 6 additions & 6 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-11 22:02+0800\n"
10+
"PO-Revision-Date:2024-01-11 22:08+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"
@@ -1352,8 +1352,8 @@ 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” 後面的名"
1355+
"透過 with 陳述式,Patch 可以做為情境管理器使用。 patch 適用於 with陳述式之後"
1356+
"的縮排區塊。 如果你使用\"as\",則被 patch 的物件將被綁定到\"as\" 後面的名"
13571357
"稱; 如果 :func:`patch` 正在為你建立一個 mock 物件,這會非常有用。"
13581358

13591359
#:../../library/unittest.mock.rst:1408
@@ -1388,23 +1388,23 @@ msgid ""
13881388
"`~Mock.return_value` of the mock that will be used."
13891389
msgstr""
13901390
"Patch 一個類別會以 :class:`MagicMock` *實例*取代該類別。 如果該類別在被測試的"
1391-
"程式碼中實例化,那麼它將是會被使用的 mock 的:attr:`~Mock.return_value`。"
1391+
"程式碼中實例化,那麼它將是會被使用的 mock 的:attr:`~Mock.return_value`。"
13921392

13931393
#:../../library/unittest.mock.rst:1429
13941394
msgid""
13951395
"If the class is instantiated multiple times you could use :attr:`~Mock."
13961396
"side_effect` to return a new mock each time. Alternatively you can set the "
13971397
"*return_value* to be anything you want."
13981398
msgstr""
1399-
"如果該類別被實例化多次,你可以使用:attr:`~Mock.side_effect` 來每次回傳一個新"
1399+
"如果該類別被實例化多次,你可以使用:attr:`~Mock.side_effect` 來每次回傳一個新"
14001400
"的 mock。 或者你可以將 *return_value* 設定成你想要的任何值。"
14011401

14021402
#:../../library/unittest.mock.rst:1433
14031403
msgid""
14041404
"To configure return values on methods of *instances* on the patched class "
14051405
"you must do this on the :attr:`return_value`. For example::"
14061406
msgstr""
1407-
"若要配置被 patch 的類別的*實例*方法的回傳值,你必須在 :attr:`return_value`上"
1407+
"若要配置被 patch 的類別的*實例*方法的回傳值,你必須在 :attr:`return_value`上"
14081408
"進行配置。 例如: ::"
14091409

14101410
#:../../library/unittest.mock.rst:1447

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp