chore: establish V1.1 recovery baseline

This commit is contained in:
2026-09-09 22:05:00 +08:00
commit b46b48eb33
947 changed files with 155471 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
"""
V1.1 服务预约 E2E 测试骨架
测试项目: 服务预约全流程 + 并发安全
"""
import pytest
@pytest.mark.e2e
class TestServiceAppointmentE2E:
"""服务预约 E2E 测试"""
def test_submit_appointment(self, api_client, service_location_factory):
"""用户可提交服务预约"""
# TODO: P19 实现后完善
pass
def test_appointment_idempotent(self, api_client, service_location_factory):
"""预约提交支持幂等(Idempotency-Key)"""
# TODO: P19 实现后完善
pass
def test_operator_can_confirm(self, operator_client, appointment_factory):
"""后台可确认预约"""
# TODO: P19 实现后完善
pass
def test_appointment_concurrent_safety(self, api_client, service_location_factory):
"""同一预约同时取消和确认的并发安全性"""
# TODO: P19 实现后完善
pass
def test_my_appointments_list(self, api_client, appointment_factory):
"""我的预约列表正确"""
# TODO: P19 实现后完善
pass
def test_cancel_before_confirmation(self, api_client, appointment_factory):
"""待确认状态可取消"""
# TODO: P19 实现后完善
pass
def test_cancel_after_confirmation_denied(self, api_client, appointment_factory):
"""已确认状态不可自行取消"""
# TODO: P19 实现后完善
pass