import pytest @pytest.fixture() def resource(): print("setup") yield "resource" ... The test method instance is passed to setup_method and teardown_method ...
確定! 回上一頁