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:
Andreas Motl
2022-10-16 16:48:44 +02:00
committed by GitHub
parent ed876d1ca2
commit c81d2465e4
61 changed files with 100 additions and 150 deletions

View File

@ -165,7 +165,7 @@ def test_plugin_custom_xml_urls():
@mock.patch('requests.post')
def test_notify_xml_plugin_attachments(mock_post, no_throttling):
def test_notify_xml_plugin_attachments(mock_post):
"""
NotifyXML() Attachments
@ -225,7 +225,7 @@ def test_notify_xml_plugin_attachments(mock_post, no_throttling):
@mock.patch('requests.post')
@mock.patch('requests.get')
def test_plugin_custom_xml_edge_cases(mock_get, mock_post, no_throttling):
def test_plugin_custom_xml_edge_cases(mock_get, mock_post):
"""
NotifyXML() Edge Cases