Skip to content

Commit 721737a

Browse files
committed
test(scripts): compare setup_plan's copied plan with the on-disk template
The fixture writes plan-template.md with write_text(), which gives CRLF on Windows, and setup_plan copies those bytes. Comparing against the LF constant failed on Windows even with the JSON fix in place. Assisted-by: Claude Code (model: claude-opus-5-5, autonomous)
1 parent e9ae3b2 commit 721737a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/test_setup_plan_python_parity.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def test_python_json_preserves_non_ascii_feature_on_legacy_stdout(repo: Path) ->
7575
assert Path(payload["FEATURE_DIR"]) == feature
7676
assert Path(payload["FEATURE_SPEC"]) == feature / "spec.md"
7777
assert Path(payload["IMPL_PLAN"]) == feature / "plan.md"
78-
assert (feature / "plan.md").read_bytes() == TEMPLATE_BODY.encode("utf-8")
78+
template = repo / ".specify" / "templates" / "plan-template.md"
79+
assert (feature / "plan.md").read_bytes() == template.read_bytes()
7980

8081

8182
@pytest.mark.parametrize("port", PORTS)

0 commit comments

Comments
 (0)