import pytest
class Test_MainPage(object):
def setup(self):
connect_phone()
check_start_app()
print("\n------->setup method")
def teardown(self):
print("\n------->teardown method")
if __name__ == '__main__':
pytest.main(["-s","Test_MainPage.py"])
求解决,没有执行setup和teardown的内容