Files
danyang-match/tests/e2e/service_appointment_test.py
T

36 lines
1.3 KiB
Python
Raw Normal View History

2026-09-09 22:05:00 +08:00
"""
V1.1 服务预约 E2E —— 空壳已移除(Phase 23 KEEP-VERIFY,2026-09-18)
历史问题
--------
原文件 7 个测试函数**全部**为 `pass` 空壳(注释「TODO: P19 实现后完善」),
依赖不存在的 `service_location_factory` / `appointment_factory` / `operator_client`
等 fixture(全局无 `conftest.py`),从未执行过,
却在 `docs/STATUS.md` 中被计为 P23-T08「服务预约 E2E ✅」。
计划 Phase 23 Gate:「**不允许 skip/pass 空壳**」。
当前状态
--------
本文件现**不含任何测试函数**,pytest 收集 0 个用例。
仍待真实实现的场景(需求不因移除空壳而丢失)
------------------------------------------
1. 用户可提交服务预约
2. 预约提交支持幂等(Idempotency-Key)
3. 后台可确认预约
4. 同一预约同时取消与确认的并发安全性
5. 我的预约列表正确
6. 待确认状态可取消
7. 已确认状态不可自行取消
现状补充(Phase 23 实测)
------------------------
预约 owner 归属与数据范围已有真实后端测试:
`ServiceAppointmentOwnerGuardTest`、`ServiceAppointmentDataScopeTest`。
预约创建链路在 `tests/e2e/run_v11_tests.py::test_06_service_appointment`
中有真实 HTTP 覆盖。E2E 层其余场景待补。
真实可执行的 V1.1 E2E 见:`tests/e2e/run_v11_tests.py`
2026-09-09 22:05:00 +08:00
"""