8000 docs(translate-mock): mock page翻譯 · python/python-docs-zh-tw@cf7e337 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf7e337

Browse files
committed
docs(translate-mock): mock page翻譯
翻譯rst:17與rst:21 可能需討論部分譯名(例如stub)
1 parent 3e38b1a commit cf7e337

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

library/unittest.mock.po

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
11-
"PO-Revision-Date: 2018-05-23 16:14+0000\n"
11+
"PO-Revision-Date: 2023-08-15 16:47+0800\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1414
"tw)\n"
@@ -17,6 +17,7 @@ msgstr ""
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=1; plural=0;\n"
20+
"X-Generator: Poedit 3.3.2\n"
2021

2122
#: ../../library/unittest.mock.rst:3
2223
msgid ":mod:`unittest.mock` --- mock object library"
@@ -32,6 +33,8 @@ msgid ""
3233
"replace parts of your system under test with mock objects and make "
3334
"assertions about how they have been used."
3435
msgstr ""
36+
":mod:`unittest.mock` 在Python中是一個用於進行測試的函式庫。 它允許你用模擬對"
37+
"象 (mock object) 在測試中替換部分系統,並斷言 (assert) 它們是如何被使用的。"
3538

3639
#: ../../library/unittest.mock.rst:21
3740
msgid ""
@@ -41,6 +44,10 @@ msgid ""
4144
"and arguments they were called with. You can also specify return values and "
4245
"set needed attributes in the normal way."
4346
msgstr ""
47+
":mod:`unittest.mock` 提供了一個以 :class:`mock` 為核心的類別,去除在測試中創"
48+
"建大量 stubs 的需求。 在執行動作之後,你可以斷言 (assert) 哪些 method (方"
49+
"法)/ 屬性被使用,以及哪些參數被呼叫。 你還可以用常規的方式指定回傳值與設定所"
50+
"需的屬性。"
4451

4552
#: ../../library/unittest.mock.rst:27
4653
msgid ""

0 commit comments

Comments
 (0)
0