mirror of
https://github.com/caronc/apprise.git
synced 2025-08-09 08:25:07 +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:
@ -164,7 +164,7 @@ def test_plugin_twist_init():
|
||||
|
||||
@mock.patch('requests.get')
|
||||
@mock.patch('requests.post')
|
||||
def test_plugin_twist_auth(mock_post, mock_get, no_throttling):
|
||||
def test_plugin_twist_auth(mock_post, mock_get):
|
||||
"""
|
||||
NotifyTwist() login/logout()
|
||||
|
||||
@ -266,7 +266,7 @@ def test_plugin_twist_auth(mock_post, mock_get, no_throttling):
|
||||
|
||||
@mock.patch('requests.get')
|
||||
@mock.patch('requests.post')
|
||||
def test_plugin_twist_cache(mock_post, mock_get, no_throttling):
|
||||
def test_plugin_twist_cache(mock_post, mock_get):
|
||||
"""
|
||||
NotifyTwist() Cache Handling
|
||||
|
||||
@ -351,7 +351,7 @@ def test_plugin_twist_cache(mock_post, mock_get, no_throttling):
|
||||
|
||||
@mock.patch('requests.get')
|
||||
@mock.patch('requests.post')
|
||||
def test_plugin_twist_fetch(mock_post, mock_get, no_throttling):
|
||||
def test_plugin_twist_fetch(mock_post, mock_get):
|
||||
"""
|
||||
NotifyTwist() fetch()
|
||||
|
||||
|
Reference in New Issue
Block a user