3
0
Fork 0

feat: add basic email handler support

still no way to define "profiles" for admin in web app yet
This commit is contained in:
Lance Edgar 2024-08-26 13:08:19 -05:00
parent b401fac04f
commit 131ad88a16
17 changed files with 1163 additions and 2 deletions

View file

@ -397,12 +397,25 @@ class TestAppHandler(FileConfigTestCase):
auth = self.app.get_auth_handler()
self.assertIsInstance(auth, AuthHandler)
def test_get_email_handler(self):
from wuttjamaican.email import EmailHandler
mail = self.app.get_email_handler()
self.assertIsInstance(mail, EmailHandler)
def test_get_people_handler(self):
from wuttjamaican.people import PeopleHandler
people = self.app.get_people_handler()
self.assertIsInstance(people, PeopleHandler)
def test_get_send_email(self):
from wuttjamaican.email import EmailHandler
with patch.object(EmailHandler, 'send_email') as send_email:
self.app.send_email('foo')
send_email.assert_called_once_with('foo')
class TestAppProvider(TestCase):