From 4c47d1f95780977f851c11d5605eaea567f615c6 Mon Sep 17 00:00:00 2001 From: Mips2648 Date: Fri, 23 Aug 2024 16:57:08 +0200 Subject: [PATCH] remove mock_test_callback --- tests/base_daemon_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/base_daemon_test.py b/tests/base_daemon_test.py index 8687d9e..d729e3a 100644 --- a/tests/base_daemon_test.py +++ b/tests/base_daemon_test.py @@ -31,16 +31,16 @@ async def _on_start_cb(self): raise Exception("Test") @mock.patch("builtins.open", new_callable=mock.mock_open) - @mock.patch("jeedomdaemon.aio_connector.Publisher.test_callback", new_callable=mock.AsyncMock) - def test_base_daemon_creation(self, mock_open_method, mock_test_callback): + def test_base_daemon_creation(self, mock_open_method): """ Tests if it can create a basic daemon """ with pytest.raises(SystemExit) as pytest_wrapped_e: + # with mock.patch('jeedomdaemon.aio_connector.Publisher.test_callback') as mock_test_callback: self._test_daemon.run() assert pytest_wrapped_e.type == SystemExit assert pytest_wrapped_e.value.code == 0 - mock_test_callback.assert_called_once() + # mock_test_callback.assert_called_once() @mock.patch("builtins.open", new_callable=mock.mock_open) def test_base_daemon_initialization(self, mock_open_method):