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

allows overriding email urls using settings #729

Merged

Conversation

n-borges
Copy link
Contributor

@n-borges n-borges commented May 3, 2023

The PR adds three new settings to allow easy url customization in emails.
This has been done adding a new, simple parent class for all Email types in emails.py, that injects the settings value into the context passed to the actual Email instances.

I added a couple unit tests in a new module, i hope they are somewhat coherent with your existing test suite.

Thank you all for the work on this project, it really is great!

@codecov
Copy link

codecov bot commented May 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.03%. Comparing base (4452009) to head (b208404).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #729   +/-   ##
=======================================
  Coverage   99.02%   99.03%           
=======================================
  Files          26       26           
  Lines         821      829    +8     
=======================================
+ Hits          813      821    +8     
  Misses          8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

three new settings have been added to customize the context
passed to the email templates, allowing to set urls domain,
protocol and site name with ease.
@tomwojcik tomwojcik self-requested a review March 31, 2024 10:47
@tomwojcik tomwojcik added this to the 2.2.3 milestone Mar 31, 2024
Copy link
Contributor

@tomwojcik tomwojcik left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@tomwojcik tomwojcik merged commit 610c78c into sunscrapers:master Mar 31, 2024
17 checks passed
@FraCata00
Copy link

Looks good, thank you!

Great!!

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.

3 participants