feat: MES 接口自动化测试框架(unittest + HTMLTestRunner + 数据驱动)

This commit is contained in:
WbiubiuW
2026-09-22 14:29:22 +08:00
commit ce0bf42e04
45 changed files with 1463 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
"""pytest 兼容入口:pytest 可直接收集 unittest 用例,
这里负责在会话级启动本地 mock MES 服务(与 runner.py 同一套)。"""
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import pytest # noqa: E402
from mock.server import start_mock_server # noqa: E402
@pytest.fixture(scope='session', autouse=True)
def _mock_mes_server():
start_mock_server(port=8080)
yield