mirror of
https://github.com/caronc/apprise.git
synced 2025-08-14 10:28:38 +02:00
Tests: Use no_throttling
fixture everywhere
This commit is contained in:
@ -111,13 +111,11 @@ def test_plugin_ifttt_urls():
|
||||
|
||||
@mock.patch('requests.get')
|
||||
@mock.patch('requests.post')
|
||||
def test_plugin_ifttt_edge_cases(mock_post, mock_get):
|
||||
def test_plugin_ifttt_edge_cases(mock_post, mock_get, no_throttling):
|
||||
"""
|
||||
NotifyIFTTT() Edge Cases
|
||||
|
||||
"""
|
||||
# Disable Throttling to speed testing
|
||||
plugins.NotifyBase.request_rate_per_sec = 0
|
||||
|
||||
# Initialize some generic (but valid) tokens
|
||||
webhook_id = 'webhook_id'
|
||||
@ -135,9 +133,6 @@ def test_plugin_ifttt_edge_cases(mock_post, mock_get):
|
||||
with pytest.raises(TypeError):
|
||||
plugins.NotifyIFTTT(webhook_id=None, events=None)
|
||||
|
||||
# Disable Throttling to speed testing
|
||||
plugins.NotifyBase.request_rate_per_sec = 0
|
||||
|
||||
# Initializes the plugin with an invalid webhook id
|
||||
with pytest.raises(TypeError):
|
||||
plugins.NotifyIFTTT(webhook_id=None, events=events)
|
||||
|
Reference in New Issue
Block a user