conftest.py 562 Bytes
Newer Older
mc183225678 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName:   test64
# FileName:      conftest.py
# Author:       lao_zhao
# Datetime:     2024/12/26 14:31
# Description:
# 
# ---------------------------------------------------------------------------
import pytest
from APIAutoTest_v3 import log_decorator
from APIAutoTest_v3.requests_method.requests_method import RequestsMethod



@log_decorator
@pytest.fixture(scope="session")
def req_fix():
    req = RequestsMethod()
    yield req
    req.close()