Skip to content

Commit

Permalink
A couple of linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcollom committed Mar 7, 2021
1 parent 93fa68d commit 6e00260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tom_registration/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_user_register(self):
self.assertContains(response, 'Your registration is currently pending administrator approval.')
self.assertEqual(len(mail.outbox), 1)
self.assertIn(f'Registration Request from {self.user_data["first_name"]} {self.user_data["last_name"]}',
mail.outbox[0].subject)
mail.outbox[0].subject)

@patch('tom_registration.registration_flows.approval_required.views.mail_managers')
def test_user_register_email_send_failure(self, mock_mail_managers):
Expand Down Expand Up @@ -132,7 +132,7 @@ def test_user_approve_email_send_failure(self, mock_send_mail):
mock_send_mail.side_effect = SMTPException('exception content')

with self.assertLogs('tom_registration.registration_flows.approval_required.views', level='ERROR') as logs:
response = self.client.post(reverse('registration:approve', kwargs={'pk': user.id}), data=test_user_data)
self.client.post(reverse('registration:approve', kwargs={'pk': user.id}), data=test_user_data)
self.assertIn(
'ERROR:tom_registration.registration_flows.approval_required.views:'
'Unable to send email: exception content',
Expand Down

0 comments on commit 6e00260

Please sign in to comment.