test(P13.1): add milestone state machine tests — 17 tests covering freeze/start/close/auto-complete/preflight

New test infrastructure:
- tests/conftest.py: SQLite in-memory fixtures, TestClient wired to test DB,
  factory fixtures for User/Project/Milestone/Task/Roles/Permissions
- tests/test_milestone_actions.py: 17 tests covering:
  - freeze success/no-release-task/multiple-release-tasks/wrong-status
  - start success+started_at/deps-not-met/wrong-status
  - close from open/freeze/undergoing, rejected from completed/closed
  - auto-complete on release task finish, no auto-complete for non-release/wrong-status
  - preflight allowed/not-allowed
This commit is contained in:
zhi
2026-03-18 03:07:30 +00:00
parent 7bad57eb0e
commit 011a2262ce
3 changed files with 657 additions and 0 deletions

1
tests/__init__.py Normal file
View File

@@ -0,0 +1 @@
# tests package