fix(ci): restore db safety smoke backup and sample-test skip behavior

This commit is contained in:
Jarca
2026-06-30 16:35:51 +09:00
parent 4929e52189
commit 26b815d723
3 changed files with 33 additions and 4 deletions
+12 -1
View File
@@ -9,7 +9,18 @@ from jarca_ledger_mcp import service
PDF_PATH = Path("/root/.hermes/cache/documents/doc_5a12af727ae0_KB거래내역조회_5704_2606171043.pdf")
PDF_PASSWORD = os.environ.get("KB_BANK_PDF_TEST_PASSWORD", "")
SAMPLE_AVAILABLE = PDF_PATH.exists() and bool(PDF_PASSWORD)
def _sample_available(path: Path, password: str) -> bool:
if not password:
return False
try:
return path.is_file()
except OSError:
return False
SAMPLE_AVAILABLE = _sample_available(PDF_PATH, PDF_PASSWORD)
@pytest.mark.skipif(not SAMPLE_AVAILABLE, reason="sample KB Bank PDF/password is not available")