From 867b923b85ec6a2ed6d2cb59b4e6aefcd4376ce4 Mon Sep 17 00:00:00 2001 From: Alvin Schiller <103769832+AlvinSchiller@users.noreply.github.com> Date: Sun, 5 May 2024 23:27:51 +0200 Subject: [PATCH] Update test_SimpleButton.py --- components/gpio_control/test/test_SimpleButton.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/gpio_control/test/test_SimpleButton.py b/components/gpio_control/test/test_SimpleButton.py index d6f03acd3..b0b933e09 100644 --- a/components/gpio_control/test/test_SimpleButton.py +++ b/components/gpio_control/test/test_SimpleButton.py @@ -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): @@ -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):