mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 04:46:26 +00:00
refactor: 迁移前端资源文件至web目录 feat: 新增多种图标资源 style: 统一代码风格和格式化配置 docs: 更新README和文档说明 chore: 更新依赖和配置文件 fix: 修复部分类型定义和枚举 perf: 优化路由和组件加载逻辑
24 lines
631 B
Python
24 lines
631 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import pytest
|
|
from config.setting import settings
|
|
|
|
# 获取Jenkins选项参数(切记参数名称不可以使用中文)
|
|
# import os
|
|
# TEST_TYPE = os.environ['TESTTYPE']
|
|
# ENVIRONMENT: str = os.environ['ENVIRONMENT']
|
|
# API_HOST: str = os.environ['APIHOST']
|
|
# TESTER: str = os.environ['TESTER']
|
|
|
|
args = [
|
|
'-sv',
|
|
f'--html={settings.HTML_REPORT_PATH}',
|
|
'--self-contained-html', # 静态html, 不需要额外的资源文件
|
|
f'--log-file={settings.LOG_PATH}',
|
|
'-W', 'ignore:Module already imported:pytest.PytestWarning'
|
|
]
|
|
|
|
if __name__ == '__main__':
|
|
# 执行测试
|
|
pytest.main(args)
|