-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove NtfyBackendExponentialRateLimitBackend and SmtpExponent…
…ialRateLimitEmailBackend They can be easily replaced by ExponentialRateLimitBackends where the list of backends is NtfyBackend or Emailbackend
- Loading branch information
Showing
4 changed files
with
5 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,7 +247,11 @@ def test_priority_signal(settings, use_ntfy_backend, priority_signal): | |
assert mail.send_mail("Sub", "Body", "[email protected]", ["[email protected]"]) == 1 | ||
|
||
|
||
def test_exponential_rate_limit(settings, use_ntfy_exponential_ratelimit_backend, clear_cache): | ||
def test_exponential_rate_limit(settings, use_exponential_ratelimit_backends, clear_cache): | ||
settings.EMAIL_EXPONENTIAL_RATE_LIMIT_BACKENDS = [ | ||
'django_ntfy.NtfyBackend', | ||
] | ||
|
||
def check(sent: bool, subject_suffix: str): | ||
if sent: | ||
with responses.RequestsMock() as rsps: | ||
|
This file was deleted.
Oops, something went wrong.