feat: complete dcy-015 monthly settlement dashboard

Merge dcy-015 monthly settlement dashboard delivery after local and GitHub Actions verification.
This commit is contained in:
2026-07-12 20:16:36 +09:00
committed by GitHub
parent a4a913cdd6
commit 835728793e
171 changed files with 12231 additions and 5 deletions
+64
View File
@@ -50,11 +50,75 @@ def test_streamlit_apptest_core_pages_use_synthetic_fixture_db(tmp_path, monkeyp
"자산/마감": "월말 스냅샷 Preview / Close",
"분류 규칙": "분류 규칙",
"확인필요 큐": "KB↔토스뱅크 확인필요 큐",
"월정산": "월정산",
}
for page, expected_text in page_expectations.items():
at = AppTest.from_file(str(app_path), default_timeout=10)
at.query_params["page"] = page
if page == "월정산":
at.query_params["month"] = "2026-06"
at.run()
assert not at.exception
body_text = "\n".join(str(item.value) for item in list(at.text) + list(at.markdown) + list(at.caption))
assert expected_text in body_text
if page == "월정산":
assert "월간 핵심 KPI" in body_text
assert "현금흐름 / 지출 구조" in body_text
assert "예산 대비 점검" in body_text
assert "정산 전 운영 블로커 점검" in body_text
assert "정산 전 검토" in body_text
assert "거래 반영 / 계좌 상태" in body_text
assert "자산 / 순자산 마감 상태" in body_text
assert "미해결 블로커" in body_text
assert "미분류" in body_text
assert "미분류 페이지" in body_text
assert "대표 계좌 반영 상태" in body_text
assert "계좌명" in body_text
assert "CI Synthetic Checking" in body_text
assert "기관" in body_text
assert "유형" in body_text
assert "최근 동기화: 2026-06-30T23:59:00+09:00" in body_text
assert "잔액: 1,250,000원" in body_text
assert "상태: 정상" in body_text
assert "자산 상세: 경고 없음" in body_text
assert "월정산 결과 / Evidence" in body_text
assert "읽기 전용 근거 요약" in body_text
assert "이번 범위에는 월정산 close 저장/실행이 포함되지 않습니다" in body_text
assert "다음 액션" in body_text
assert "예산 조정 후보" in body_text
assert "분류/검토 규칙 후보" in body_text
assert "대조/Import/백업 후속 작업" in body_text
assert "close 준비 상태" in body_text
assert "source coverage" in body_text
assert "최근 Import" in body_text
assert "자산/마감" in body_text
metrics = {metric.label: metric.value for metric in at.metric}
assert metrics["실제 수입"] == "2,000,000원"
assert metrics["실제 지출"] == "35,000원"
assert metrics["순현금흐름"] == "1,965,000원"
assert metrics["저축률"] == "98.2%"
assert metrics["예산 항목 수"] == "0건"
assert metrics["월 예산"] == "50,000원"
assert metrics["예산 초과 항목"] == "0건"
assert metrics["미처리 review"] == "0건"
assert metrics["미대조 계좌"] == "0건"
assert metrics["미분류 추천 대기"] == "2건"
assert metrics["자산 합계"] == "6,250,000원"
assert metrics["총부채"] == "2,000,000원"
assert "자산 마감 상태" in metrics
assert metrics["순자산"] == "4,250,000원"
assert metrics["자산 마감 상태"] == "미마감"
assert metrics["최근 Import 시각"] == "없음"
assert "선택 월: 2026-06" in body_text
assert "기준일: 2026-06-30" in body_text
assert "기준 시각" in body_text
assert "모드: 읽기 전용" in body_text
assert "확인필요 큐로 이동" in body_text
assert "계좌 화면에서 잔액대조 확인" in body_text
assert "Import 화면에서 이력 확인" in body_text
assert "자산/마감 화면에서 스냅샷 확인" in body_text
assert "fixture.sqlite3" not in body_text
assert ".local/share/jarca/uploads" not in body_text
assert "/home/" not in body_text
assert "raw_payload" not in body_text
assert "🔒 읽기 전용" in body_text