77# Yon Liu <[email protected] >, 202088# kevin wong <[email protected] >, 202099# Freesand Leo <[email protected] >, 202010+ # Min Su <[email protected] >, 20201011#
1112#, fuzzy
1213msgid ""
@@ -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."
3940msgstr ""
40- ":mod:`unittest.mock` 是一个用于测试的Python库。它允许使用模拟对象来替换受测系统的部分,并对它们如何已经被使用进行断言。"
41+ ":mod:`unittest.mock` "
42+ "是一个用于测试的Python库。它允许使用模拟对象来替换受测系统的一些部分,并对这些部分如何被使用进行断言判断。"
4143
4244#: ../../library/unittest.mock.rst:21
4345msgid ""
@@ -48,7 +50,7 @@ msgid ""
4850"set needed attributes in the normal way."
4951msgstr ""
5052":mod:`unittest.mock` 提供了一个核心类 :class:`Mock` "
51- "用于消除了在整个测试套件中创建大量存根 (stub)的需求。创建后,就可以断言调用了哪些方法/属性及其参数。还可以以常规方式指定返回值并设置所需的属性 。"
53+ "用于消除在整个测试套件中创建大量存根 (stub)的需求。在执行一个操作后,你就可以用断言去判断:哪些方法/属性及其参数被调用到了。你还可以用常规的方式指定返回值并设置所需的属性 。"
5254
5355#: ../../library/unittest.mock.rst:27
5456msgid ""
@@ -58,9 +60,9 @@ msgid ""
5860"some examples of how to use :class:`Mock`, :class:`MagicMock` and "
5961":func:`patch`."
6062msgstr ""
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
6668msgid ""
0 commit comments