conftest.py 761 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
# -*-coding:utf-8-*- #
# ---------------------------------------------------------------------------
# ProjectName:   test62
# FileName:      conftest.py
# Author:       why
# Datetime:     2024/9/7 下午3:01
# Description:
# 命名规范:文件名全小写+下划线,类名大驼峰,方法和变量小写+下划线连接,
# 常量大写,变量和常量用名词,方法用动词
# --------------------------------------------------------------------------
import pytest

from apiAutoTest_v4.common.db import DB
from apiAutoTest_v4.request_method.request_method import RequestMethod


@pytest.fixture(scope="session")
def fix_db():
    db = DB()
    yield db


@pytest.fixture(scope="session")
def fix_req():
    req = RequestMethod()
    yield req