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

Skip to content

Commit 12a35b6

Browse files
[po] auto sync
1 parent 13a1dcd commit 12a35b6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

library/unittest.mock.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ msgid ""
738738
"mock. Therefore, it can match the actual call's arguments regardless of "
739739
"whether they were passed positionally or by name::"
740740
msgstr ""
741+
"使用 *spec* (或 *spec_set*) 创建的可调用 mock 将在匹配调用与 mock 时内省规格说明对象的签名。 "
742+
"因此,它可以匹配实际调用的参数而不必关心它们是按位置还是按名称传入的::"
741743

742744
#: ../../library/unittest.mock.rst:810
743745
msgid ""
@@ -746,6 +748,10 @@ msgid ""
746748
":meth:`~Mock.assert_any_call`. When :ref:`auto-speccing`, it will also "
747749
"apply to method calls on the mock object."
748750
msgstr ""
751+
"这适用于 :meth:`~Mock.assert_called_with`, "
752+
":meth:`~Mock.assert_called_once_with`, :meth:`~Mock.assert_has_calls` 和 "
753+
":meth:`~Mock.assert_any_call`。 当执行 :ref:`auto-speccing` 时,它还将应用于 mock "
754+
"对象的方法调用。"
749755

750756
#: ../../library/unittest.mock.rst:815
751757
msgid "Added signature introspection on specced and autospecced mock objects."

0 commit comments

Comments
 (0)