Skip to content

Commit 2a25c27

Browse files
anselm67claude
andcommitted
test(kernsheet): give _FakeKern a spine_count for the new review
The spine_count review (481e114) reads kern.spine_count, but the editor tests' _FakeKern stub lacked it, so every editor test exercising reviews hit AttributeError. Add spine_count (default 2 = a normal 2-staff scan, which doesn't trip the review). Test-only; production KernReader already exposes spine_count. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A3yZYjbFTdhgQNyTXTtM1F
1 parent 644ce8e commit 2a25c27

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/kernsheet/test_editor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ def __init__(
5757
first_bar: int = 1,
5858
bar_zero: bool = False,
5959
text: list[str] | None = None,
60+
spine_count: int = 2,
6061
) -> None:
6162
self.bar_count = bar_count
6263
self.first_bar = first_bar
6364
self._bar_zero = bar_zero
6465
self._text = text
66+
self.spine_count = spine_count
6567

6668
def has_bar_zero(self) -> bool:
6769
return self._bar_zero

0 commit comments

Comments
 (0)