File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-02-23 00:13 +0800\n "
10+ "PO-Revision-Date : 2024-02-23 00:19 +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 "
@@ -2871,8 +2871,8 @@ msgid ""
28712871"As well as using *autospec* through :func:`patch` there is a :func:"
28722872"`create_autospec` for creating autospecced mocks directly:"
28732873msgstr ""
2874- "除了透過 :func:`patch` 使用 *autospec 之外,還有一個 :func:`create_autospec` "
2875- "用於直接建立有自動規格的 mock:"
2874+ "除了透過 :func:`patch` 使用 *autospec* 之外,還有一個 :func:"
2875+ "`create_autospec` 用於直接建立有自動規格的 mock:"
28762876
28772877#: ../../library/unittest.mock.rst:2658
28782878msgid ""
@@ -2910,9 +2910,9 @@ msgid ""
29102910"you to fetch attributes that don't exist on the spec it doesn't prevent you "
29112911"setting them::"
29122912msgstr ""
2913- "有幾種不同的方法可以解決這個問題。最簡單但不一定是最不煩人的方法是在建立後簡 "
2914- "單地在 mock 上設定所需的屬性。因為雖然 *autospec* 不允許你取得規格中不存在的 "
2915- "屬性 ,但是它不會阻止你設定它們: ::"
2913+ "有幾種不同的方法可以解決這個問題。最簡單但可能有點煩人的方法是在建立後簡單地 "
2914+ "在 mock 上設定所需的屬性。因為雖然 *autospec* 不允許你取得規格中不存在的屬 "
2915+ "性 ,但是它不會阻止你設定它們: ::"
29162916
29172917#: ../../library/unittest.mock.rst:2695
29182918msgid ""
You can’t perform that action at this time.
0 commit comments