mirror of
https://github.com/caronc/apprise.git
synced 2025-08-09 16:35:07 +02:00
Tests: Use no_throttling
fixture everywhere
This commit is contained in:
@ -176,13 +176,11 @@ def test_plugin_msteams_urls():
|
||||
|
||||
|
||||
@mock.patch('requests.post')
|
||||
def test_plugin_msteams_templating(mock_post, tmpdir):
|
||||
def test_plugin_msteams_templating(mock_post, tmpdir, no_throttling):
|
||||
"""
|
||||
NotifyMSTeams() Templating
|
||||
|
||||
"""
|
||||
# Disable Throttling to speed testing
|
||||
plugins.NotifyBase.request_rate_per_sec = 0
|
||||
|
||||
# Prepare Mock
|
||||
mock_post.return_value = requests.Request()
|
||||
@ -387,15 +385,12 @@ def test_plugin_msteams_templating(mock_post, tmpdir):
|
||||
@pytest.mark.skipif(
|
||||
hasattr(sys, "pypy_version_info"), reason="Does not work reliably on PyPy")
|
||||
@mock.patch('requests.post')
|
||||
def test_msteams_yaml_config(mock_post, tmpdir):
|
||||
def test_msteams_yaml_config(mock_post, tmpdir, no_throttling):
|
||||
"""
|
||||
NotifyMSTeams() YAML Configuration Entries
|
||||
|
||||
"""
|
||||
|
||||
# Disable Throttling to speed testing
|
||||
plugins.NotifyBase.request_rate_per_sec = 0
|
||||
|
||||
# Prepare Mock
|
||||
mock_post.return_value = requests.Request()
|
||||
mock_post.return_value.status_code = requests.codes.ok
|
||||
|
Reference in New Issue
Block a user