Skip to content

Commit 57ac0e4

Browse files
Update test to patch private _current_word instead of property setter
1 parent 09c5ef1 commit 57ac0e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/console/test_repl_console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_prompt_fragments_full_list(monkeypatch: pytest.MonkeyPatch) -> None:
3131

3232
# Fix spinner and word cycler values for predictability
3333
monkeypatch.setattr(rc._spinner, "_current_frame", "X")
34-
monkeypatch.setattr(rc._word_cycler, "current_word", "WORD")
34+
monkeypatch.setattr(rc._word_cycler, "_current_word", "WORD")
3535

3636
# Set token animator values
3737
rc._token_animator._current_input_val = 1500.0

0 commit comments

Comments
 (0)