[英]How is the workflow of tearDownClass from unittest.TestCase?
如何通過unittest.TestCase
進行tearDownClass的工作流程? 是在每個測試方法之后調用,還是只是在最后“關閉連接”測試類?
它的解釋對我來說還不清楚: https : //docs.python.org/3/library/unittest.html#unittest.TestCase.tearDown
在取消分配類時調用該方法:換句話說,當您完成所有測試方法時。 它與setUpClass
類方法直接相關,但在執行的另一端。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.