File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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::"
740740msgstr ""
741+ "使用 *spec* (或 *spec_set*) 创建的可调用 mock 将在匹配调用与 mock 时内省规格说明对象的签名。 "
742+ "因此,它可以匹配实际调用的参数而不必关心它们是按位置还是按名称传入的::"
741743
742744#: ../../library/unittest.mock.rst:810
743745msgid ""
@@ -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."
748750msgstr ""
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
751757msgid "Added signature introspection on specced and autospecced mock objects."
You can’t perform that action at this time.
0 commit comments