Skip to content

Commit

Permalink
fix test that expected release events that did not release anything
Browse files Browse the repository at this point in the history
  • Loading branch information
sezanzeb committed Oct 4, 2024
1 parent 7e60c61 commit 201ee44
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/unit/test_event_pipeline/test_mapping_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,13 @@ def test_forward_correctly(self):
self.uinputs[self.keyboard_hash].write_history,
[InputEvent.key(self.input_combination[1].code, 0)],
)
self.assertListEqual(
self.uinputs[self.gamepad_hash].write_history,
[InputEvent.key(self.input_combination[2].code, 0)],
)

# We do not expect a release event for this, because there was no key-down
# event when the combination triggered.
# self.assertListEqual(
# self.uinputs[self.gamepad_hash].write_history,
# [InputEvent.key(self.input_combination[2].code, 0)],
# )

def test_no_forwards(self):
# if a combination is not triggered, nothing is released
Expand Down

0 comments on commit 201ee44

Please sign in to comment.