2 Star 1 Fork 1

InternLM/lmdeploy

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
conftest.py 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
zhulinJulia24 提交于 2024-08-26 17:09 +08:00 . [ci] benchmark react (#2183)
import os
import pytest
import yaml
cli_prompt_case_file = 'autotest/chat_prompt_case.yaml'
common_prompt_case_file = 'autotest/prompt_case.yaml'
config_file = 'autotest/config.yaml'
@pytest.fixture(scope='session')
def config():
config_path = os.path.join(config_file)
with open(config_path) as f:
env_config = yaml.load(f.read(), Loader=yaml.SafeLoader)
return env_config
@pytest.fixture(scope='session')
def cli_case_config():
case_path = os.path.join(cli_prompt_case_file)
with open(case_path) as f:
case_config = yaml.load(f.read(), Loader=yaml.SafeLoader)
return case_config
@pytest.fixture(scope='class', autouse=True)
def common_case_config():
case_path = os.path.join(common_prompt_case_file)
with open(case_path) as f:
case_config = yaml.load(f.read(), Loader=yaml.SafeLoader)
return case_config
def pytest_addoption(parser):
parser.addoption('--run_id',
action='store',
default='',
help='github run_id')
@pytest.fixture(scope='session')
def run_id(request):
return request.config.getoption('--run_id')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/internlm/lmdeploy.git
git@gitee.com:internlm/lmdeploy.git
internlm
lmdeploy
lmdeploy
main

搜索帮助