deps.get_session 트랜잭션 관리 회귀 테스트 #19
Labels
No labels
api
bug
chore
collector
decision-needed
docs
enhancement
feature
feedback-loop
frontend
infra
skill
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
xhh/financial-data-platform#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR #17 (v0.2.0) 에서
api/deps.py의get_session이 yield 후 commit 없이 close 만 하던 버그가 발견·수정됨. 누군가 다시 commit 라인을 제거하면 모든 mutation 이 롤백되는 현상이 조용히 재발할 수 있음.테스트 케이스
tests/api/test_deps.py(또는test_watchlist.py내):client.post("/api/watchlist", json=...)→client.get("/api/watchlist/{ticker}")가 동일 레코드 반환.의존
완료 기준
uv run pytest tests/api/test_watchlist.py::test_post_persists가 CI 에서 녹색