mirror of
https://github.com/caronc/apprise.git
synced 2025-01-03 20:49:19 +01:00
Fix tests for NotifyDBus
(#704)
This commit is contained in:
parent
f01e6d8a3b
commit
d753c11c80
@ -375,8 +375,8 @@ def test_plugin_dbus_missing_icon(mocker, dbus_glib_environment):
|
|||||||
title='title', body='body',
|
title='title', body='body',
|
||||||
notify_type=apprise.NotifyType.INFO) is True
|
notify_type=apprise.NotifyType.INFO) is True
|
||||||
assert logger.mock_calls == [
|
assert logger.mock_calls == [
|
||||||
call.warning('Could not load notification icon (%s). '
|
call.warning('Could not load notification icon (%s).', ANY),
|
||||||
'Reason: Something failed', ANY),
|
call.debug('DBus Exception: Something failed'),
|
||||||
call.info('Sent DBus notification.'),
|
call.info('Sent DBus notification.'),
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -511,7 +511,6 @@ def test_plugin_dbus_interface_notify_croaks(mocker):
|
|||||||
title='title', body='body',
|
title='title', body='body',
|
||||||
notify_type=apprise.NotifyType.INFO) is False
|
notify_type=apprise.NotifyType.INFO) is False
|
||||||
assert [
|
assert [
|
||||||
call.warning('Failed to send DBus notification. '
|
call.warning('Failed to send DBus notification.'),
|
||||||
'Reason: Something failed'),
|
call.debug('DBus Exception: Something failed'),
|
||||||
call.exception('DBus Exception')
|
|
||||||
] in logger.mock_calls
|
] in logger.mock_calls
|
||||||
|
Loading…
Reference in New Issue
Block a user