mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
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:
parent
d98211e5e5
commit
4f35ec6542
@ -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")])
|
||||
|
Loading…
Reference in New Issue
Block a user