mirror of
https://github.com/caronc/apprise.git
synced 2025-08-10 08:47:53 +02:00
Tests: Use global no_throttling_everywhere
fixture (#701)
Instead of needing to individually disable throttling on a per-plugin basis, this fixture takes care of all notifiers in `NOTIFY_MODULE_MAP` automatically. With `autouse=True`, there is no need to activate it manually.
This commit is contained in:
@ -233,7 +233,7 @@ def test_plugin_ntfy_chat_urls():
|
||||
|
||||
|
||||
@mock.patch('requests.post')
|
||||
def test_plugin_ntfy_attachments(mock_post, no_throttling):
|
||||
def test_plugin_ntfy_attachments(mock_post):
|
||||
"""
|
||||
NotifyNtfy() Attachment Checks
|
||||
|
||||
@ -348,7 +348,7 @@ def test_plugin_ntfy_attachments(mock_post, no_throttling):
|
||||
|
||||
|
||||
@mock.patch('requests.post')
|
||||
def test_plugin_custom_ntfy_edge_cases(mock_post, no_throttling):
|
||||
def test_plugin_custom_ntfy_edge_cases(mock_post):
|
||||
"""
|
||||
NotifyNtfy() Edge Cases
|
||||
|
||||
@ -425,7 +425,7 @@ def test_plugin_custom_ntfy_edge_cases(mock_post, no_throttling):
|
||||
|
||||
@mock.patch('requests.post')
|
||||
@mock.patch('requests.get')
|
||||
def test_plugin_ntfy_config_files(mock_post, mock_get, no_throttling):
|
||||
def test_plugin_ntfy_config_files(mock_post, mock_get):
|
||||
"""
|
||||
NotifyNtfy() Config File Cases
|
||||
"""
|
||||
|
Reference in New Issue
Block a user