-
Notifications
You must be signed in to change notification settings - Fork 0
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 management command to notify and delete users #2
Conversation
c176791
to
5dee891
Compare
@Ian-Foote @adam-thomas @nologo can you review please? |
class TestUserNotifyManagementCommand(TestCase): | ||
def test_no_users(self): | ||
call_command('notify_users') | ||
self.assertFalse(len(mail.outbox)) |
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.
I'd prefer assertEqual(0)
.
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.
👍 for this, personally. Not a dealbreaker for me though.
Give them a more explicit name
Updated and thanks for the review! |
LGTM, nice one! :) It occurs to me that the 'account deleted' email sounds quite hostile. Where does that copy come from? |
It comes from diabates coach |
OK cool, fine by me then :) |
No description provided.