My tests.py
from django.core import mail
from django.test import SimpleTestCase
class EmailTest(SimpleTestCase):
def test_send_email(self):
mail.send_mail(
'Test - Subject 1', 'Test de email, primer envio',
'[email protected]', ['[email protected]'],
fail_silently=False
)
self.assertEquals(len(mail.outbox), 1)
self.assertEquals(mail.outbox[0].subject, 'Test - Subject 2')
I want to run the test without creating any database, is it possible?