test: /api/reset 테스트 강화 + CI 커버리지 게이트 - #25
Merged
Conversation
- 일반 키 호출 시 DB(Robot/SensorData)·Redis 데이터가 보존되는지 확인 - 관리자 키 호출 시 실제로 데이터가 삭제되는지 확인 (기존엔 상태코드만 검증) - CI에 --cov-fail-under=70 커버리지 게이트 추가
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/reset테스트가 상태코드만 확인하던 것을 실제 DB(Robot/SensorData)·Redis 데이터의 삭제/보존 여부까지 검증하도록 강화--cov-fail-under=70커버리지 게이트 추가Test plan
pytest test/test_admin.py -v로컬 통과 확인