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

Skip to content

Commit 0f40361

Browse files
[po] auto sync
1 parent 2f9ef54 commit 0f40361

1 file changed

Lines changed: 22 additions & 18 deletions

File tree

library/unittest.mock.po

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,20 +1969,22 @@ msgstr "如果你使用了 *spec* 或 *spec_set* 参数则将 *只有* 存在于
19691969

19701970
#: ../../library/unittest.mock.rst:2068
19711971
msgid "A non-callable version of :class:`MagicMock`."
1972-
msgstr ""
1972+
msgstr ":class:`MagicMock` 的不可调用对象版本。"
19731973

19741974
#: ../../library/unittest.mock.rst:2070
19751975
msgid ""
19761976
"The constructor parameters have the same meaning as for :class:`MagicMock`, "
19771977
"with the exception of *return_value* and *side_effect* which have no meaning"
19781978
" on a non-callable mock."
19791979
msgstr ""
1980+
"其构造器的形参具有与 :class:`MagicMock` 相同的含义,区别在于 *return_value* 和 *side_effect* "
1981+
"在不可调用的 mock 上没有意义。"
19801982

19811983
#: ../../library/unittest.mock.rst:2074
19821984
msgid ""
19831985
"The magic methods are setup with :class:`MagicMock` objects, so you can "
19841986
"configure them and use them in the usual way:"
1985-
msgstr ""
1987+
msgstr "魔术方法是通过 :class:`MagicMock` 对象来设置的,因此你可以用通常的方式来配置它们并使用它们:"
19861988

19871989
#: ../../library/unittest.mock.rst:2084
19881990
msgid ""
@@ -1992,70 +1994,72 @@ msgid ""
19921994
"interested in the return value. You can still *set* the return value "
19931995
"manually if you want to change the default."
19941996
msgstr ""
1997+
"在默认情况下许多协议方法都需要返回特定类型的对象。 这些方法都预先配置了默认的返回值,以便它们在你对返回值不感兴趣时可以不做任何事就能被使用。 "
1998+
"如果你想要修改默认值则你仍然可以手动 *设置* 返回值。"
19951999

19962000
#: ../../library/unittest.mock.rst:2090
19972001
msgid "Methods and their defaults:"
1998-
msgstr ""
2002+
msgstr "方法及其默认返回值:"
19992003

20002004
#: ../../library/unittest.mock.rst:2092
20012005
msgid "``__lt__``: ``NotImplemented``"
2002-
msgstr ""
2006+
msgstr "``__lt__``: ``NotImplemented``"
20032007

20042008
#: ../../library/unittest.mock.rst:2093
20052009
msgid "``__gt__``: ``NotImplemented``"
2006-
msgstr ""
2010+
msgstr "``__gt__``: ``NotImplemented``"
20072011

20082012
#: ../../library/unittest.mock.rst:2094
20092013
msgid "``__le__``: ``NotImplemented``"
2010-
msgstr ""
2014+
msgstr "``__le__``: ``NotImplemented``"
20112015

20122016
#: ../../library/unittest.mock.rst:2095
20132017
msgid "``__ge__``: ``NotImplemented``"
2014-
msgstr ""
2018+
msgstr "``__ge__``: ``NotImplemented``"
20152019

20162020
#: ../../library/unittest.mock.rst:2096
20172021
msgid "``__int__``: ``1``"
2018-
msgstr ""
2022+
msgstr "``__int__``: ``1``"
20192023

20202024
#: ../../library/unittest.mock.rst:2097
20212025
msgid "``__contains__``: ``False``"
2022-
msgstr ""
2026+
msgstr "``__contains__``: ``False``"
20232027

20242028
#: ../../library/unittest.mock.rst:2098
20252029
msgid "``__len__``: ``0``"
2026-
msgstr ""
2030+
msgstr "``__len__``: ``0``"
20272031

20282032
#: ../../library/unittest.mock.rst:2099
20292033
msgid "``__iter__``: ``iter([])``"
2030-
msgstr ""
2034+
msgstr "``__iter__``: ``iter([])``"
20312035

20322036
#: ../../library/unittest.mock.rst:2100
20332037
msgid "``__exit__``: ``False``"
2034-
msgstr ""
2038+
msgstr "``__exit__``: ``False``"
20352039

20362040
#: ../../library/unittest.mock.rst:2101
20372041
msgid "``__aexit__``: ``False``"
2038-
msgstr ""
2042+
msgstr "``__aexit__``: ``False``"
20392043

20402044
#: ../../library/unittest.mock.rst:2102
20412045
msgid "``__complex__``: ``1j``"
2042-
msgstr ""
2046+
msgstr "``__complex__``: ``1j``"
20432047

20442048
#: ../../library/unittest.mock.rst:2103
20452049
msgid "``__float__``: ``1.0``"
2046-
msgstr ""
2050+
msgstr "``__float__``: ``1.0``"
20472051

20482052
#: ../../library/unittest.mock.rst:2104
20492053
msgid "``__bool__``: ``True``"
2050-
msgstr ""
2054+
msgstr "``__bool__``: ``True``"
20512055

20522056
#: ../../library/unittest.mock.rst:2105
20532057
msgid "``__index__``: ``1``"
2054-
msgstr ""
2058+
msgstr "``__index__``: ``1``"
20552059

20562060
#: ../../library/unittest.mock.rst:2106
20572061
msgid "``__hash__``: default hash for the mock"
2058-
msgstr ""
2062+
msgstr "``__hash__``: mock 的默认 hash"
20592063

20602064
#: ../../library/unittest.mock.rst:2107
20612065
msgid "``__str__``: default str for the mock"

0 commit comments

Comments
 (0)