test(791-1): 마스터 지문 해시가 줄바꿈(CRLF/LF) 무관 + 지문 fixture 마스터 칸 재저장(결과 칸 그대로)
폴더마다 체크아웃 줄바꿈이 달라 메인 폴더에서 test_794_2b 셈 지문 시험이 깨짐. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1520,5 +1520,5 @@
|
||||
"GF000336": "a9b9e0bb0f7da1f0",
|
||||
"GX000004": "a3f4c454a5764d6e"
|
||||
},
|
||||
"마스터": "884c1240fa2c924d"
|
||||
"마스터": "70896c23b6b406b0"
|
||||
}
|
||||
|
||||
@@ -35,7 +35,8 @@ def _master_hash() -> str:
|
||||
h = hashlib.sha256()
|
||||
for path in sorted((ROOT / "resources" / "master_data").glob("*.json")):
|
||||
if not path.name.startswith("_"):
|
||||
h.update(path.name.encode() + path.read_bytes())
|
||||
raw = path.read_bytes().replace(b"\r\n", b"\n") # 줄바꿈(CRLF/LF) 무관
|
||||
h.update(path.name.encode() + raw)
|
||||
return h.hexdigest()[:16]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user