# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName:   test61
# FileName:      conftest.py
# Author:       lao_zhao
# Datetime:     2024/7/12 10:03
# Description:
# 
# ---------------------------------------------------------------------------
import pytest


data_dict = {}


def set_value(key, value):
    # 校验key和value
    data_dict[key] = value


def get_value(key):
    if key in data_dict.keys():
        return data_dict[key]
    else:
        return "not fount"


@pytest.fixture(scope="session")
def set_depends_value():
    yield set_value


@pytest.fixture(scope="session")
def get_depends_value():
    yield get_value