From 130c61ea62ce49f25aaf5a460cf7bbed9216809b Mon Sep 17 00:00:00 2001 From: KINDNICK Date: Thu, 4 Jun 2026 18:27:43 +0900 Subject: [PATCH] test: disable holiday auto-sync in _integration_test (fixes S2/S31 WinError 32 temp-DB lock) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Database.__init__의 공휴일 동기화 백그라운드 스레드가 SQLite 연결을 잡고 있어 임시 DB os.remove가 실패하던 문제. 문서화된 CLOCKOUT_DISABLE_HOLIDAY_SYNC 플래그를 테스트 시작 시 설정. Co-Authored-By: Claude Opus 4.8 (1M context) --- _integration_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_integration_test.py b/_integration_test.py index afe0bfe..ac72522 100644 --- a/_integration_test.py +++ b/_integration_test.py @@ -15,6 +15,11 @@ from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) +# 테스트 중에는 공휴일 자동 동기화(백그라운드 네트워크 스레드)를 비활성화. +# 이 스레드가 SQLite 연결을 잡고 있으면 임시 DB의 os.remove가 WinError 32(파일 사용 중)로 +# 실패함 (S2/S31 등). DB 인스턴스 생성 전에 설정해야 효과 있음. +os.environ.setdefault('CLOCKOUT_DISABLE_HOLIDAY_SYNC', '1') + PASS = [] FAIL = [] WARN = []