-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from moshthepitt/issue-26
Fix name in application emails
- Loading branch information
Showing
8 changed files
with
14 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
""" | ||
Main init file for small_small_hr | ||
""" | ||
VERSION = (0, 1, 5) | ||
VERSION = (0, 1, 6) | ||
__version__ = '.'.join(str(v) for v in VERSION) | ||
# pylint: disable=invalid-name | ||
default_app_config = 'small_small_hr.apps.SmallSmallHrConfig' # noqa |
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
2 changes: 1 addition & 1 deletion
2
small_small_hr/templates/small_small_hr/email/leave_application_email_body.html
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Hello {{name}},<br/><br/> | ||
Hello,<br/><br/> | ||
{{message|linebreaks}} | ||
<br/><br/> | ||
Thank you,<br/> | ||
|
2 changes: 1 addition & 1 deletion
2
small_small_hr/templates/small_small_hr/email/leave_application_email_body.txt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Hello {{name}}, | ||
Hello, | ||
|
||
{{message}} | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
small_small_hr/templates/small_small_hr/email/overtime_application_email_body.html
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Hello {{name}},<br/><br/> | ||
Hello,<br/><br/> | ||
{{message|linebreaks}} | ||
<br/><br/> | ||
Thank you,<br/> | ||
|
2 changes: 1 addition & 1 deletion
2
small_small_hr/templates/small_small_hr/email/overtime_application_email_body.txt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Hello {{name}}, | ||
Hello, | ||
|
||
{{message}} | ||
|
||
|
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 |
---|---|---|
|
@@ -21,7 +21,8 @@ | |
@override_settings( | ||
SSHR_ADMIN_EMAILS=["[email protected]"], | ||
SSHR_ADMIN_LEAVE_EMAILS=["[email protected]"], | ||
SSHR_ADMIN_OVERTIME_EMAILS=["[email protected]"] | ||
SSHR_ADMIN_OVERTIME_EMAILS=["[email protected]"], | ||
SSHR_ADMIN_NAME="mosh" | ||
) | ||
class TestEmails(TestCase): | ||
""" | ||
|
@@ -55,7 +56,7 @@ def test_leave_application_email(self, mock): | |
leave_application_email(leave) | ||
|
||
mock.assert_called_with( | ||
name="Bob Ndoe", | ||
name="mosh", | ||
email="[email protected]", | ||
subject="New Leave Application", | ||
message="There has been a new leave application. Please log in to process it.", # noqa | ||
|
@@ -104,7 +105,7 @@ def test_overtime_application_email(self, mock): | |
overtime_application_email(overtime) | ||
|
||
mock.assert_called_with( | ||
name="Bob Ndoe", | ||
name="mosh", | ||
email="[email protected]", | ||
subject="New Overtime Application", | ||
message="There has been a new overtime application. Please log in to process it.", # noqa | ||
|
@@ -222,7 +223,7 @@ def test_send_email_templates(self, mock, site_mock): | |
leave_application_email(leave) | ||
|
||
context = dict( | ||
name="Bob Ndoe", | ||
name="mosh", | ||
subject="New Leave Application", | ||
message="There has been a new leave application. Please log in to process it.", # noqa | ||
object=leave, | ||
|
@@ -260,7 +261,7 @@ def test_send_email_templates(self, mock, site_mock): | |
overtime_application_email(overtime) | ||
|
||
context = dict( | ||
name="Bob Ndoe", | ||
name="mosh", | ||
subject="New Overtime Application", | ||
message="There has been a new overtime application. Please log in to process it.", # noqa | ||
object=overtime, | ||
|