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

Skip to content

Commit 976a296

Browse files
[po] auto sync
1 parent 8b92dad commit 976a296

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

library/unittest.mock.po

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,23 +520,25 @@ msgstr "一个告诉你 mock object 对象已被调用多少次的整数值:"
520520

521521
#: ../../library/unittest.mock.rst:519
522522
msgid "Set this to configure the value returned by calling the mock:"
523-
msgstr ""
523+
msgstr "设置这个来配置通过调用该 mock 所返回的值:"
524524

525525
#: ../../library/unittest.mock.rst:526
526526
msgid ""
527527
"The default return value is a mock object and you can configure it in the "
528528
"normal way:"
529-
msgstr ""
529+
msgstr "默认的返回值是一个 mock 对象并且你可以通过正常方式来配置它:"
530530

531531
#: ../../library/unittest.mock.rst:535
532532
msgid ":attr:`return_value` can also be set in the constructor:"
533-
msgstr ""
533+
msgstr ":attr:`return_value` 也可以在构造器中设置:"
534534

535535
#: ../../library/unittest.mock.rst:546
536536
msgid ""
537537
"This can either be a function to be called when the mock is called, an "
538538
"iterable or an exception (class or instance) to be raised."
539539
msgstr ""
540+
"这可以是当该This can either be a function to be called when the mock "
541+
"被调用时将被调用的一个函数,可调用对象或者要被引发的异常(类或实例)。"
540542

541543
#: ../../library/unittest.mock.rst:549
542544
msgid ""
@@ -546,6 +548,9 @@ msgid ""
546548
"returns :data:`DEFAULT` then the mock will return its normal value (from the"
547549
" :attr:`return_value`)."
548550
msgstr ""
551+
"如果你传入一个函数则它将附带与该 mock 相同的参数被调用并且除了该函数返回 :data:`DEFAULT` 单例的情况以外对该 mock "
552+
"的调用都将随后返回该函数所返回的任何东西。 如果该函数返回 :data:`DEFAULT` 则该 mock 将返回其正常值 (来自 "
553+
":attr:`return_value`)。"
549554

550555
#: ../../library/unittest.mock.rst:555
551556
msgid ""

0 commit comments

Comments
 (0)