Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
e353f18e
Commit
e353f18e
authored
Apr 23, 2014
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add two FEATURE flag overrides to enable the security features
parent
460b31ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lms/djangoapps/api_manager/tests/test_sessions_security.py
+3
-0
No files found.
lms/djangoapps/api_manager/tests/test_sessions_security.py
View file @
e353f18e
...
@@ -4,6 +4,7 @@ Tests for session api with advance security features
...
@@ -4,6 +4,7 @@ Tests for session api with advance security features
import
json
import
json
import
uuid
import
uuid
import
unittest
import
unittest
from
mock
import
patch
from
datetime
import
datetime
,
timedelta
from
datetime
import
datetime
,
timedelta
from
freezegun
import
freeze_time
from
freezegun
import
freeze_time
from
pytz
import
UTC
from
pytz
import
UTC
...
@@ -20,6 +21,8 @@ TEST_API_KEY = str(uuid.uuid4())
...
@@ -20,6 +21,8 @@ TEST_API_KEY = str(uuid.uuid4())
@override_settings
(
EDX_API_KEY
=
TEST_API_KEY
)
@override_settings
(
EDX_API_KEY
=
TEST_API_KEY
)
@patch.dict
(
"django.conf.settings.FEATURES"
,
{
'ENFORCE_PASSWORD_POLICY'
:
True
})
@patch.dict
(
"django.conf.settings.FEATURES"
,
{
'ENABLE_MAX_FAILED_LOGIN_ATTEMPTS'
:
True
})
@unittest.skipUnless
(
settings
.
ROOT_URLCONF
==
'lms.urls'
,
'Test only valid in lms'
)
@unittest.skipUnless
(
settings
.
ROOT_URLCONF
==
'lms.urls'
,
'Test only valid in lms'
)
class
SessionApiSecurityTest
(
TestCase
):
class
SessionApiSecurityTest
(
TestCase
):
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment