{"id":1398,"date":"2019-12-23T13:32:47","date_gmt":"2019-12-23T05:32:47","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=1398"},"modified":"2019-12-24T13:33:16","modified_gmt":"2019-12-24T05:33:16","slug":"python-%e7%88%ac%e9%98%b6%e6%a2%af-unittest-%e4%b8%ad%e5%b8%b8%e7%94%a8%e5%88%b0%e7%9a%84%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=1398","title":{"rendered":"Python \u722c\u9636\u68af | unittest \u4e2d\u5e38\u7528\u5230\u7684\u64cd\u4f5c"},"content":{"rendered":"\n<p>\u6211\u4eec\u5728\u4e0a\u4e00\u7bc7\u4e2d\u8bf4\u4e86\u6d4b\u8bd5\u7684\u91cd\u8981\u6027\uff0c\u4ee5\u53ca\u7b80\u5355\u7684\u6f14\u793a\u4e86\u5982\u4f55\u4f7f\u7528 unittest \u6765\u505a\u4e00\u4e9b\u5355\u5143\u6d4b\u8bd5\uff0c\u63a5\u4e0b\u6765\u6211\u518d\u628a unittest \u7684\u5e38\u7528\u64cd\u4f5c\u8ddf\u4f60\u8bf4\u8bf4\u3002<\/p>\n\n\n\n<p>\u4e0a\u6b21\u6211\u4eec\u5199\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u6d4b\u8bd5\u7528\u4f8b\uff1a<div style=\"text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;\">\u672c\u6587\u9690\u85cf\u5185\u5bb9 <a href=\"https:\/\/vip.fxxkpython.com\/wp-login.php?redirect_to=https%3A%2F%2Fvip.fxxkpython.com%2F%3Fp%3D1398\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"513\" height=\"142\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-24-13-29-43.png\" alt=\"\" class=\"wp-image-1415\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-24-13-29-43.png 513w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-24-13-29-43-300x83.png 300w\" sizes=\"(max-width: 513px) 100vw, 513px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"498\" height=\"377\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-24-13-29-57.png\" alt=\"\" class=\"wp-image-1416\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-24-13-29-57.png 498w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-24-13-29-57-300x227.png 300w\" sizes=\"(max-width: 498px) 100vw, 498px\" \/><\/figure><\/div>\n\n\n\n<p>ok\uff0c\u4ee5\u4e0a\u5c31\u662f\u4eca\u5929\u8981\u8ddf\u4f60\u8bf4\u7684\uff0c\u5728 Python \u4e2d\u6700\u5e38\u7528\u5230\u7684\u5355\u5143\u6d4b\u8bd5\u6846\u67b6 unittest \u7684\u5e38\u7528\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u5728\u4e0a\u4e00\u7bc7\u4e2d\u8bf4\u4e86\u6d4b\u8bd5\u7684\u91cd\u8981\u6027\uff0c\u4ee5\u53ca\u7b80\u5355\u7684\u6f14\u793a\u4e86\u5982\u4f55\u4f7f\u7528 unittest \u6765\u505a\u4e00\u4e9b\u5355\u5143\u6d4b\u8bd5\uff0c\u63a5\u4e0b\u6765\u6211\u518d\u628a unittest \u7684\u5e38\u7528\u64cd\u4f5c\u8ddf\u4f60\u8bf4\u8bf4\u3002 \u4e0a\u6b21\u6211\u4eec\u5199\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u6d4b\u8bd5\u7528\u4f8b\uff1a ok\uff0c\u4ee5\u4e0a\u5c31\u662f\u4eca\u5929\u8981\u8ddf\u4f60\u8bf4\u7684\uff0c\u5728 Python \u4e2d\u6700\u5e38\u7528\u5230\u7684\u5355\u5143\u6d4b\u8bd5&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[140],"tags":[141,243,246,245,247,248,249,240,238],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1398"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1398"}],"version-history":[{"count":1,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1398\/revisions"}],"predecessor-version":[{"id":1417,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1398\/revisions\/1417"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}