📜  拆解模块 pytest - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:08.605000             🧑  作者: Mango

代码示例2
def setup_method(self, method):
    """ setup any state tied to the execution of the given method in a
    class.  setup_method is invoked for every test method of a class.
    """


def teardown_method(self, method):
    """ teardown any state that was previously setup with a setup_method
    call.
    """