All checks were successful
技能自动化发布 / release (push) Successful in 15s
基于 skill-template 脚手架开发,包含: - 5 张业务表(教职工、请假政策、考勤日历、请假记录、假期余额) - 请假核算引擎(扣薪计算、审批层级判定、年假抵扣) - CLI 入口(import-employees / calculate-leave / render-html) - HTML 审批与扣薪报告生成 - 示例数据与完整测试套件(295 tests passed)
22 lines
707 B
Plaintext
22 lines
707 B
Plaintext
# -*- coding: utf-8 -*-
|
|
# 样例:复制为 test_simulator_rpa_contract.py 后按需运行;默认跳过。
|
|
"""仿真页面 / RPA 契约(不默认启动浏览器)。"""
|
|
from __future__ import annotations
|
|
|
|
import unittest
|
|
|
|
from adapter_test_utils import should_skip_profile
|
|
|
|
|
|
class TestSimulatorRpaContractSample(unittest.TestCase):
|
|
def test_skip_unless_simulator_rpa_target(self) -> None:
|
|
skip, reason = should_skip_profile("simulator_rpa")
|
|
if skip:
|
|
raise unittest.SkipTest(reason)
|
|
# 真实技能中:可替换为 Playwright 连接 http://localhost:5180/select 等仿真入口。
|
|
self.assertFalse(skip)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|