-
Notifications
You must be signed in to change notification settings - Fork 47
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
Extract email templates into separate files #335
Conversation
Consider putting the templates in |
My initial thought was that |
The goal of the PR has been reached, but I haven't tested the code yet, as I'm using the web VS Codes in Github. I'll test it when I get home. We should consider moving the |
Moving the email templates into
Stacktrace:
|
I resolved the issue. I had used the wrong path for the templates. I've now also moved the send_payment_mail into mail.py. |
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## next #335 +/- ##
==========================================
+ Coverage 80.14% 80.65% +0.51%
==========================================
Files 32 32
Lines 2820 2817 -3
Branches 218 217 -1
==========================================
+ Hits 2260 2272 +12
+ Misses 524 510 -14
+ Partials 36 35 -1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just needs a run through black (make sure to run it with the newest version using a recent python version, otherwise it will continue to fail in CI).
I'm not sure what to do, I can't figure out where to read the output of the "Black formatter check", I have zero experience with Githubs CI/CD |
You don't really need to do anything with the output from the "Black formatter check" CI. You just need to run black formatter locally (https://github.com/psf/black) and commit the changes. |
Interesting... Are we using a different config than default for Black? |
The config can be found in the CI definition: stregsystemet/.github/workflows/black.yml Line 13 in 31d8c2a
|
It appears the formatting issues black had were unrelated to this PR, but actually originating from a commit back in November 0e1b65a. I included a commit to resolve the formatting issue. It should be ready now @jonasKjellerup, I'd probably squash, as 9 commits for this refactor is a little much 😅 |
Oh yea; forgot about that. @falkecarlsen will you take a look at this and merge at your convenience? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, great to have this decluttered a bit
Resolves #331
mail.py
)utils.py
)utils.py
)I'm using djangos templating engine.
Not sure about how to organize the new files, I've just named the folder
message_templates
(in case we want to implement something like push notifications in the future😉)