File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -463,30 +463,32 @@ msgstr ""
463463
464464#: ../../library/unittest.mock.rst:440
465465msgid "Set attributes on the mock through keyword arguments."
466- msgstr ""
466+ msgstr "通过关键字参数在 mock 上设置属性。 "
467467
468468#: ../../library/unittest.mock.rst:442
469469msgid ""
470470"Attributes plus return values and side effects can be set on child mocks "
471471"using standard dot notation and unpacking a dictionary in the method call:"
472- msgstr ""
472+ msgstr "属性加返回值和附带影响可以使用标准点号标记在子 mock 上设置并在方法调用中解包一个字典: "
473473
474474#: ../../library/unittest.mock.rst:456
475475msgid "The same thing can be achieved in the constructor call to mocks:"
476- msgstr ""
476+ msgstr "同样的操作可在对 mock 的构造器调用中达成: "
477477
478478#: ../../library/unittest.mock.rst:469
479479msgid ""
480480":meth:`configure_mock` exists to make it easier to do configuration after "
481481"the mock has been created."
482- msgstr ""
482+ msgstr ":meth:`configure_mock` 的存在是使得 mock 被创建之后的配置更为容易。 "
483483
484484#: ../../library/unittest.mock.rst:475
485485msgid ""
486486":class:`Mock` objects limit the results of ``dir(some_mock)`` to useful "
487487"results. For mocks with a *spec* this includes all the permitted attributes "
488488"for the mock."
489489msgstr ""
490+ ":class:`Mock` 对象会将 ``dir(some_mock)`` 的结果限制为有用结果。 对于带有 *spec* 的 mock 这还包括 "
491+ "mock 的所有被允许的属性。"
490492
491493#: ../../library/unittest.mock.rst:479
492494msgid ""
You can’t perform that action at this time.
0 commit comments