Pytest學習筆記1——傳統前後置處理

  引言   在《Python 自動化測試框架unittest與pytest的區別》這篇文章中,已經介紹了pytest的前後置,現在單獨拿出來,再來複習一次。   文中unittest是有三個處理前後置的函數:   setUp()&tearDown() < setUpClass()&tearDownClass() < setUpModule()&tearDownModule(),而pytest相對
相關文章
相關標籤/搜索