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

@ -135,9 +135,6 @@ def test_plugin_opsgenie_urls():
"""
# Disable Throttling to speed testing
NotifyOpsgenie.request_rate_per_sec = 0
# Run our general tests
AppriseURLTester(tests=apprise_url_tests).run_all()
@ -174,9 +171,6 @@ def test_plugin_opsgenie_config_files(mock_post):
tag: opsgenie_str emerg
"""
# Disable Throttling to speed testing
NotifyOpsgenie.request_rate_per_sec = 0
# Prepare Mock
mock_post.return_value = requests.Request()
mock_post.return_value.status_code = requests.codes.ok