Commit 8efbff2f by shenjiamin

update conftest.py commit

parent 9b5e26af
import pytest
# import pytest
from APIAutoTest_shen_2 import log_decorator
from APIAutoTest_shen_2.requests_method.requests_method import RequestsMethod
# from APIAutoTest_shen_2 import log_decorator
# from APIAutoTest_shen_2.requests_method.requests_method import RequestsMethod
@log_decorator
#用例的自定义固件,一般设置为最高级别
@pytest.fixture(scope="session")
def req_fix1():
#创建RequestsMethod对象
req = RequestsMethod()
yield req
req.close()
# @log_decorator
# #用例的自定义固件,一般设置为最高级别
# @pytest.fixture(scope="session")
# def req_fix1():
# #创建RequestsMethod对象
# req = RequestsMethod()
# yield req
# req.close()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment