fix update handler tests

If daemon tests are run before the update handler it causes test
failure, because there are other calls
This commit is contained in:
Evgenii Alekseev 2022-10-31 11:51:12 +02:00
parent d98211e5e5
commit 4f35ec6542

View File

@ -108,4 +108,4 @@ def test_log_fn(application: Application, mocker: MockerFixture) -> None:
""" """
logger_mock = mocker.patch("logging.Logger.info") logger_mock = mocker.patch("logging.Logger.info")
Update.log_fn(application, False)("hello") Update.log_fn(application, False)("hello")
logger_mock.assert_called_once_with("hello") logger_mock.assert_has_calls([mock.call("hello")])