diff --git a/hypha/apply/users/tests/test_utils.py b/hypha/apply/users/tests/test_utils.py index 9c68dd86ba6ea5feaffdf4e7462fd214071ef51d..6c85337205a586362b50499d4ed59c7cdf1a05c3 100644 --- a/hypha/apply/users/tests/test_utils.py +++ b/hypha/apply/users/tests/test_utils.py @@ -1,5 +1,6 @@ from django.core import mail from django.test import TestCase, override_settings +from django.conf import settings from hypha.apply.users.tests.factories import UserFactory @@ -11,3 +12,4 @@ class TestActivationEmail(TestCase): def test_activation_email_includes_link(self): send_activation_email(UserFactory()) self.assertEqual(len(mail.outbox), 1) + self.assertContains(mail.outbox[0], settings.WAGTAILADMIN_BASE_URL) diff --git a/hypha/settings/test.py b/hypha/settings/test.py index e4936bbfb355f67645f8f151eb9ab0b6ba5bd2ca..6cd3f6faecb3d351166975c27309136bf29960b8 100644 --- a/hypha/settings/test.py +++ b/hypha/settings/test.py @@ -22,3 +22,5 @@ STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage' PASSWORD_HASHERS = [ 'django.contrib.auth.hashers.MD5PasswordHasher', ] + +WAGTAILADMIN_BASE_URL = 'http://base-admin-url/'