From d753c11c80533cc7035169d3ccd486555a5fcda2 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 18 Oct 2022 04:42:05 +0200 Subject: [PATCH] Fix tests for `NotifyDBus` (#704) --- test/test_plugin_glib.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/test_plugin_glib.py b/test/test_plugin_glib.py index e4891a20..959d1bf9 100644 --- a/test/test_plugin_glib.py +++ b/test/test_plugin_glib.py @@ -375,8 +375,8 @@ def test_plugin_dbus_missing_icon(mocker, dbus_glib_environment): title='title', body='body', notify_type=apprise.NotifyType.INFO) is True assert logger.mock_calls == [ - call.warning('Could not load notification icon (%s). ' - 'Reason: Something failed', ANY), + call.warning('Could not load notification icon (%s).', ANY), + call.debug('DBus Exception: Something failed'), call.info('Sent DBus notification.'), ] @@ -511,7 +511,6 @@ def test_plugin_dbus_interface_notify_croaks(mocker): title='title', body='body', notify_type=apprise.NotifyType.INFO) is False assert [ - call.warning('Failed to send DBus notification. ' - 'Reason: Something failed'), - call.exception('DBus Exception') + call.warning('Failed to send DBus notification.'), + call.debug('DBus Exception: Something failed'), ] in logger.mock_calls