Skip to content

Commit

Permalink
chore: patching with side-effect
Browse files Browse the repository at this point in the history
  • Loading branch information
petereon committed Dec 19, 2024
1 parent 67fe78c commit adfc01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/keypress_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_key_capture(stdin_repr, key_repr):
def test_key_capture(stdin_repr, key_repr):
with mock.patch(
"yakh._yakh.msvcrt.getwch",
lambda *_, **__: stdin_repr,
side_effect=stdin_repr,
):
assert get_key() == key_repr
else:
Expand Down

0 comments on commit adfc01b

Please sign in to comment.