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

Skip to content

Commit 1bb2be1

Browse files
[po] auto sync
1 parent 7134e60 commit 1bb2be1

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

library/unittest.mock.po

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,30 +463,32 @@ msgstr ""
463463

464464
#: ../../library/unittest.mock.rst:440
465465
msgid "Set attributes on the mock through keyword arguments."
466-
msgstr ""
466+
msgstr "通过关键字参数在 mock 上设置属性。"
467467

468468
#: ../../library/unittest.mock.rst:442
469469
msgid ""
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
475475
msgid "The same thing can be achieved in the constructor call to mocks:"
476-
msgstr ""
476+
msgstr "同样的操作可在对 mock 的构造器调用中达成:"
477477

478478
#: ../../library/unittest.mock.rst:469
479479
msgid ""
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
485485
msgid ""
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."
489489
msgstr ""
490+
":class:`Mock` 对象会将 ``dir(some_mock)`` 的结果限制为有用结果。 对于带有 *spec* 的 mock 这还包括 "
491+
"mock 的所有被允许的属性。"
490492

491493
#: ../../library/unittest.mock.rst:479
492494
msgid ""

0 commit comments

Comments
 (0)