From 4f35ec6542b62cb9f38cb6f2b7bec90de13a815a Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Mon, 31 Oct 2022 11:51:12 +0200 Subject: [PATCH] fix update handler tests If daemon tests are run before the update handler it causes test failure, because there are other calls --- tests/ahriman/application/handlers/test_handler_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ahriman/application/handlers/test_handler_update.py b/tests/ahriman/application/handlers/test_handler_update.py index a7cd444a..a5466fc3 100644 --- a/tests/ahriman/application/handlers/test_handler_update.py +++ b/tests/ahriman/application/handlers/test_handler_update.py @@ -108,4 +108,4 @@ def test_log_fn(application: Application, mocker: MockerFixture) -> None: """ logger_mock = mocker.patch("logging.Logger.info") Update.log_fn(application, False)("hello") - logger_mock.assert_called_once_with("hello") + logger_mock.assert_has_calls([mock.call("hello")])