Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add email backend tests #41

Merged
merged 2 commits into from
Sep 28, 2023
Merged

add email backend tests #41

merged 2 commits into from
Sep 28, 2023

Conversation

joshuadavidthomas
Copy link
Member

No description provided.

Comment on lines +13 to +17
def relay_backend():
with override_settings(
EMAIL_BACKEND="email_relay.backend.RelayDatabaseEmailBackend"
):
yield
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to keep your pattern, but I tend to use this syntax instead:

Suggested change
def relay_backend():
with override_settings(
EMAIL_BACKEND="email_relay.backend.RelayDatabaseEmailBackend"
):
yield
def relay_backend(settings):
settings.EMAIL_BACKEND = "email_relay.backend.RelayDatabaseEmailBackend"

@jefftriplett jefftriplett enabled auto-merge (squash) September 28, 2023 20:34
@jefftriplett jefftriplett merged commit 275ba91 into main Sep 28, 2023
24 checks passed
@jefftriplett jefftriplett deleted the add-backend-tests branch September 28, 2023 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants