Skip to content
Snippets Groups Projects
Commit 5900844d authored by sandeepsajan0's avatar sandeepsajan0
Browse files

Override Enforce two factor settings for middleware tests

parent 09ef6197
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ from hypha.apply.users.tests.factories import UserFactory ...@@ -7,7 +7,7 @@ from hypha.apply.users.tests.factories import UserFactory
from ..middleware import ALLOWED_SUBPATH_FOR_UNVERIFIED_USERS from ..middleware import ALLOWED_SUBPATH_FOR_UNVERIFIED_USERS
@override_settings(ROOT_URLCONF='hypha.apply.urls') @override_settings(ROOT_URLCONF='hypha.apply.urls', ENFORCE_TWO_FACTOR=True)
class TestTwoFactorAuthenticationMiddleware(TestCase): class TestTwoFactorAuthenticationMiddleware(TestCase):
def enable_otp(self, user): def enable_otp(self, user):
return user.totpdevice_set.create(name='default') return user.totpdevice_set.create(name='default')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment