andromedarabbit
6/19/2015 - 3:17 PM

Check if Django is in the test mode

Check if Django is in the test mode

from django.core import mail

@property
is_django_in_test_mode():
	return hasattr(mail, 'outbox')