mirror of
https://github.com/caronc/apprise-api.git
synced 2025-08-17 10:00:56 +02:00
updated to work with Apprise v1.8.0
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user