updated to work with Apprise v1.8.0

This commit is contained in:
Chris Caron
2024-05-11 18:08:07 -04:00
parent 135dd4e98d
commit 6e57e33b8f
6 changed files with 10 additions and 10 deletions

View File

@ -33,7 +33,7 @@ import json
import apprise
# Grant access to our Notification Manager Singleton
N_MGR = apprise.NotificationManager.NotificationManager()
N_MGR = apprise.manager_plugins.NotificationManager()
class StatelessNotifyTests(SimpleTestCase):
@ -350,7 +350,7 @@ class StatelessNotifyTests(SimpleTestCase):
}
# Monkey Patch
apprise.plugins.NotifyEmail.NotifyEmail.enabled = True
apprise.plugins.email.NotifyEmail.enabled = True
# At a minimum 'body' is requred
form = NotifyByUrlForm(data=form_data)
@ -606,7 +606,7 @@ class StatelessNotifyTests(SimpleTestCase):
assert response.status_code == 400
assert mock_notify.call_count == 0
@mock.patch('apprise.plugins.NotifyJSON.NotifyJSON.send')
@mock.patch('apprise.plugins.custom_json.NotifyJSON.send')
def test_notify_with_filters(self, mock_send):
"""
Test workings of APPRISE_DENY_SERVICES and APPRISE_ALLOW_SERVICES