Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
5900844d
Commit
5900844d
authored
2 years ago
by
sandeepsajan0
Browse files
Options
Downloads
Patches
Plain Diff
Override Enforce two factor settings for middleware tests
parent
09ef6197
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hypha/apply/users/tests/test_middleware.py
+1
-1
1 addition, 1 deletion
hypha/apply/users/tests/test_middleware.py
with
1 addition
and
1 deletion
hypha/apply/users/tests/test_middleware.py
+
1
−
1
View file @
5900844d
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment