feat: use native wuttjamaican app to send feedback email
This commit is contained in:
parent
a377061da0
commit
a010071985
10 changed files with 101 additions and 35 deletions
|
@ -117,6 +117,16 @@ class TestCommonView(WebTestCase):
|
|||
self.assertEqual(list(context), ['error'])
|
||||
self.assertIn('RuntimeError', context['error'])
|
||||
|
||||
def test_feedback_send(self):
|
||||
view = self.make_view()
|
||||
with patch.object(self.app, 'send_email') as send_email:
|
||||
view.feedback_send({'user_name': "Barney",
|
||||
'message': "hello world"})
|
||||
send_email.assert_called_once_with('feedback', {
|
||||
'user_name': "Barney",
|
||||
'message': "hello world"
|
||||
})
|
||||
|
||||
def test_setup(self):
|
||||
self.pyramid_config.add_route('home', '/')
|
||||
self.pyramid_config.add_route('login', '/login')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue