8000 [po] auto sync · python/python-docs-zh-cn@4707b3b · GitHub
[go: up one dir, main page]

Skip to content

Commit 4707b3b

Browse files
[po] auto sync
1 parent 1f11229 commit 4707b3b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "80.35%", "updated_at": "2024-12-25T05:55:46Z"}
1+
{"translation": "80.35%", "updated_at": "2024-12-25T06:55:48Z"}

library/unittest.mock.po

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3366,6 +3366,9 @@ msgid ""
33663366
"<mock.Mock object at 0x...>\n"
33673367
">>> mock.has_data.assret_called_with() # Intentional typo!"
33683368
msgstr ""
3369+
">>> mock.has_data()\n"
3370+
"<mock.Mock object at 0x...>\n"
3371+
">>> mock.has_data.assret_called_with() # 故意的拼写错误!"
33693372

33703373
#: ../../library/unittest.mock.rst:2637
33713374
msgid ""
@@ -3398,6 +3401,13 @@ msgid ""
33983401
">>> mock_request.Request\n"
33993402
"<MagicMock name='request.Request' spec='Request' id='...'>"
34003403
msgstr ""
3404+
">>> from urllib import request\n"
3405+
">>> patcher = patch('__main__.request', autospec=True)\n"
3406+
">>> mock_request = patcher.start()\n"
3407+
">>> request is mock_request\n"
3408+
"True\n"
3409+
">>> mock_request.Request\n"
3410+
"<MagicMock name='request.Request' spec='Request' id='...'>"
34013411

34023412
#: ../../library/unittest.mock.rst:2656
34033413
msgid ""
@@ -3549,6 +3559,8 @@ msgid ""
35493559
"class Something:\n"
35503560
" a = 33"
35513561
msgstr ""
3562+
"class Something:\n"
3563+
" a = 33"
35523564

35533565
#: ../../library/unittest.mock.rst:2757
35543566
msgid ""

0 commit comments

Comments
 (0)
0