-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hudaifasaleh
committed
Jun 29, 2023
1 parent
e986ab4
commit 4c6092f
Showing
2 changed files
with
16 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from django_extensions.management.jobs import DailyJob | ||
|
||
|
||
class SendMailJob(DailyJob): | ||
help = "Send mail to active accounts" | ||
|
||
def execute(self): | ||
pass |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from dailyInbox.entries.jobs import SendMailJob | ||
|
||
|
||
class TestMailJob: | ||
def test_send_email(self): | ||
"""An active account receive an email prompt""" | ||
job = SendMailJob() | ||
job.execute() |