Skip to content

Commit 1dc254b

Browse files
DanMeonclaude
andcommitted
chore: 테스트 docstring 의 가변 카운트·스테이지 마커 정리
다른 파일·CI 잡에 의존하는 카운트가 docstring 에 박혀 있어 변경 시 stale 되는 안티패턴 정정 (실제로 v0.3.0 막판 5→4 정정 누락 발생). - test_cli.py 의 "5 skipped 카운트 중 1" / "1 카운트" 제거 — gated 파일 카운트 검증은 ci.yml test-without-extras 잡이 SSOT - test_langchain_loader_ir.py 의 "exactly 29 테스트 유지" 제거 — 다른 파일의 카운트가 본 파일 docstring 에 박혀 invisible coupling 발생 - test_ir_schema_export.py 의 "S3 신규 5" 매직 넘버 제거 코드 동작 변화 없음 — docstring/comment only. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 55e28c0 commit 1dc254b

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

tests/test_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""rhwp-py CLI 서브커맨드 smoke + 통합 테스트.
22
3-
cli.md § 테스트 전략 — typer.testing.CliRunner 기반 smoke + 실제 sample 통합.
4-
파일 레벨 ``importorskip("typer")`` 로 typer 미설치 시 file 전체 skip
5-
(CI ``test-without-extras`` 잡의 5 skipped 카운트 중 1).
3+
typer.testing.CliRunner 기반 smoke + 실제 sample 통합. 파일 레벨
4+
``importorskip("typer")`` 로 typer 미설치 시 file 전체 skip — gated 파일
5+
총 카운트 검증은 CI ``test-without-extras`` 잡이 SSOT.
66
"""
77

88
import json
@@ -11,7 +11,7 @@
1111

1212
import pytest
1313

14-
# ^ typer / langchain extras 가드 — typer 미설치 시 file 전체 skip (1 카운트)
14+
# ^ typer extras 가드 — 미설치 시 file 전체 skip
1515
pytest.importorskip("typer")
1616
import rhwp # noqa: E402
1717
from rhwp.cli.app import app # noqa: E402

tests/test_ir_schema_export.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ def test_export_schema_defs_are_exactly_the_known_nodes():
6666
"FormulaBlock",
6767
"FootnoteBlock",
6868
"EndnoteBlock",
69-
# ^ S3 신규 5
7069
"ListItemBlock",
7170
"CaptionBlock",
7271
"TocBlock",

tests/test_langchain_loader_ir.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
"""Stage S5 — HwpLoader(mode="ir-blocks") pytest 스위트.
1+
"""HwpLoader(mode="ir-blocks") pytest 스위트.
22
3-
``test_langchain_loader.py`` 는 CLAUDE.md 규약상 exactly 29 테스트 유지 —
4-
IR 모드 추가 테스트는 본 파일로 분리한다. 둘 모두 ``langchain_core`` 미설치
5-
시 파일 레벨 importorskip 으로 auto-skip.
3+
``test_langchain_loader.py`` 와 분리 — 본 파일은 ir-blocks 모드 전용.
4+
``langchain_core`` 미설치 시 파일 레벨 importorskip 으로 auto-skip.
65
"""
76

87
from pathlib import Path

0 commit comments

Comments
 (0)