Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a59f2d6

Browse files
[po] auto sync
1 parent f9c3aec commit a59f2d6

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

library/unittest.mock.po

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Yon Liu <[email protected]>, 2020
88
# kevin wong <[email protected]>, 2020
99
# Freesand Leo <[email protected]>, 2020
10+
# Min Su <[email protected]>, 2020
1011
#
1112
#, fuzzy
1213
msgid ""
@@ -15,7 +16,7 @@ msgstr ""
1516
"Report-Msgid-Bugs-To: \n"
1617
"POT-Creation-Date: 2020-07-18 14:42+0000\n"
1718
"PO-Revision-Date: 2020-05-30 12:13+0000\n"
18-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2020\n"
19+
"Last-Translator: Min Su <13386688@qq.com>, 2020\n"
1920
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2021
"MIME-Version: 1.0\n"
2122
"Content-Type: text/plain; charset=UTF-8\n"
@@ -37,7 +38,8 @@ msgid ""
3738
"replace parts of your system under test with mock objects and make "
3839
"assertions about how they have been used."
3940
msgstr ""
40-
":mod:`unittest.mock` 是一个用于测试的Python库。它允许使用模拟对象来替换受测系统的部分,并对它们如何已经被使用进行断言。"
41+
":mod:`unittest.mock` "
42+
"是一个用于测试的Python库。它允许使用模拟对象来替换受测系统的一些部分,并对这些部分如何被使用进行断言判断。"
4143

4244
#: ../../library/unittest.mock.rst:21
4345
msgid ""
@@ -48,7 +50,7 @@ msgid ""
4850
"set needed attributes in the normal way."
4951
msgstr ""
5052
":mod:`unittest.mock` 提供了一个核心类 :class:`Mock` "
51-
"用于消除了在整个测试套件中创建大量存根(stub)的需求。创建后,就可以断言调用了哪些方法/属性及其参数。还可以以常规方式指定返回值并设置所需的属性。"
53+
"用于消除在整个测试套件中创建大量存根(stub)的需求。在执行一个操作后,你就可以用断言去判断:哪些方法/属性及其参数被调用到了。你还可以用常规的方式指定返回值并设置所需的属性。"
5254

5355
#: ../../library/unittest.mock.rst:27
5456
msgid ""
@@ -58,9 +60,9 @@ msgid ""
5860
"some examples of how to use :class:`Mock`, :class:`MagicMock` and "
5961
":func:`patch`."
6062
msgstr ""
61-
"此外,mock 提供了用于修补测试范围内模块和类级别属性的 :func:`patch` 装饰器,和用于创建独特对象的 :const:`sentinel`"
62-
" 。 阅读 `quick guide`_ 中的案例了解如何使用 :class:`Mock` ,:class:`MagicMock` 和 "
63-
":func:`patch` 。"
63+
"此外,mock 还提供了用于修补测试范围内模块和类级别属性的 :func:`patch` 装饰器,和用于创建独特对象的 "
64+
":const:`sentinel` 。 阅读 `quick guide`_ 中的案例了解如何使用 :class:`Mock` "
65+
",:class:`MagicMock` 和 :func:`patch` 。"
6466

6567
#: ../../library/unittest.mock.rst:33
6668
msgid ""

0 commit comments

Comments
 (0)