Skip to content

Commit

Permalink
Update test_SimpleButton.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed May 6, 2024
1 parent b3d758e commit 2399fc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/gpio_control/test/test_SimpleButton.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_hold_SecondFunc_longer_holdtime(self, simple_button):
simple_button.hold_mode = 'SecondFunc'
calls = mockedSecAction.call_count
simple_button.callbackFunctionHandler(simple_button.pin)
mockedAction.assert_called_once()
mockedAction.assert_not_called()
assert mockedSecAction.call_count - calls == 1

def test_hold_SecondFunc_shorter_holdtime(self, simple_button):
Expand All @@ -170,7 +170,7 @@ def test_hold_SecondFuncRepeat_longer_holdtime(self, simple_button):
simple_button.hold_mode = 'SecondFuncRepeat'
calls = mockedSecAction.call_count
simple_button.callbackFunctionHandler(simple_button.pin)
mockedAction.assert_called_once()
mockedAction.assert_not_called()
assert mockedSecAction.call_count - calls == 3

def test_hold_SecondFuncRepeat_shorter_holdtime(self, simple_button):
Expand Down

0 comments on commit 2399fc4

Please sign in to comment.