@pytest.fixture() def pre(): print("beore test ") yield print("after test") class ... yield之前的語句,在class/function/module之前執行.
確定! 回上一頁