Files
ccdi/docs/tests/records/2026-03-31-lsfx-mock-server-abnormal-account-backend-verification.md

1.7 KiB
Raw Blame History

LSFX Mock Server 异常账户后端验证记录

1. 验证命令

按实施过程实际执行了以下命令:

cd lsfx-mock-server
python3 -m pytest tests/test_file_service.py::test_fetch_inner_flow_should_attach_abnormal_account_rule_plan -v
python3 -m pytest tests/test_statement_service.py -k "sudden_account_closure or dormant_account_large_activation" -v
python3 -m pytest tests/test_statement_service.py::test_generate_statements_should_follow_abnormal_account_rule_plan_from_file_record -v
python3 -m pytest tests/test_file_service.py tests/test_statement_service.py -v
python3 -m pytest tests/ -v

README 补充后按计划追加执行:

cd lsfx-mock-server
python3 -m pytest tests/test_statement_service.py -v

2. 验证结果摘要

  • tests/test_file_service.py::test_fetch_inner_flow_should_attach_abnormal_account_rule_plan:通过
  • tests/test_statement_service.py -k "sudden_account_closure or dormant_account_large_activation":通过
  • tests/test_statement_service.py::test_generate_statements_should_follow_abnormal_account_rule_plan_from_file_record:通过
  • python3 -m pytest tests/test_file_service.py tests/test_statement_service.py -v43 passed
  • python3 -m pytest tests/ -v84 passed
  • python3 -m pytest tests/test_statement_service.py -v26 passed

3. 过程说明

  • 回归期间发现 all 模式安全噪声测试未同步清空新增的异常账户规则维度,导致异常账户样本被计入噪声断言
  • 已通过补齐测试夹具方式修正,随后重新执行聚焦回归和全量回归,结果均通过

4. 进程清理

本轮只执行了 pytest 命令,未启动额外前端、后端或 Mock 服务进程,因此无需清理残留进程。