File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 80.35%" , "updated_at" : " 2024-12-25T05 :55:46Z " }
1
+ {"translation" : " 80.35%" , "updated_at" : " 2024-12-25T06 :55:48Z " }
Original file line number Diff line number Diff line change @@ -3366,6 +3366,9 @@ msgid ""
3366
3366
"<mock.Mock object at 0x...>\n"
3367
3367
">>> mock.has_data.assret_called_with() # Intentional typo!"
3368
3368
msgstr ""
3369
+ ">>> mock.has_data()\n"
3370
+ "<mock.Mock object at 0x...>\n"
3371
+ ">>> mock.has_data.assret_called_with() # 故意的拼写错误!"
3369
3372
3370
3373
#: ../../library/unittest.mock.rst:2637
3371
3374
msgid ""
@@ -3398,6 +3401,13 @@ msgid ""
3398
3401
">>> mock_request.Request\n"
3399
3402
"<MagicMock name='request.Request' spec='Request' id='...'>"
3400
3403
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='...'>"
3401
3411
3402
3412
#: ../../library/unittest.mock.rst:2656
3403
3413
msgid ""
@@ -3549,6 +3559,8 @@ msgid ""
3549
3559
"class Something:\n"
3550
3560
" a = 33"
3551
3561
msgstr ""
3562
+ "class Something:\n"
3563
+ " a = 33"
3552
3564
3553
3565
#: ../../library/unittest.mock.rst:2757
3554
3566
msgid ""
You can’t perform that action at this time.
0 commit comments