Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
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-proctoring
Commits
ad14deba
Commit
ad14deba
authored
Oct 28, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused is_feature_enabled method and update docs
parent
0653f84d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
24 deletions
+3
-24
README.md
+2
-2
edx_proctoring/api.py
+0
-8
edx_proctoring/tests/test_api.py
+0
-13
setup.py
+1
-1
No files found.
README.md
View file @
ad14deba
...
@@ -15,13 +15,13 @@ In order to use edx-proctoring, you must obtain an account (and secret configura
...
@@ -15,13 +15,13 @@ In order to use edx-proctoring, you must obtain an account (and secret configura
CONFIGURATION:
CONFIGURATION:
You will need to turn on the ENABLE_
PROCTORED
_EXAMS in lms.env.json and cms.env.json FEATURES dictionary:
You will need to turn on the ENABLE_
SPECIAL
_EXAMS in lms.env.json and cms.env.json FEATURES dictionary:
```
```
:
:
"FEATURES": {
"FEATURES": {
:
:
"ENABLE_
PROCTORED
_EXAMS": true,
"ENABLE_
SPECIAL
_EXAMS": true,
:
:
}
}
```
```
...
...
edx_proctoring/api.py
View file @
ad14deba
...
@@ -49,14 +49,6 @@ from edx_proctoring.runtime import get_runtime_service
...
@@ -49,14 +49,6 @@ from edx_proctoring.runtime import get_runtime_service
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
def
is_feature_enabled
():
"""
Returns if this feature has been enabled in our FEATURE flags
"""
return
hasattr
(
settings
,
'FEATURES'
)
and
settings
.
FEATURES
.
get
(
'ENABLE_PROCTORED_EXAMS'
,
False
)
def
create_exam
(
course_id
,
content_id
,
exam_name
,
time_limit_mins
,
due_date
=
None
,
def
create_exam
(
course_id
,
content_id
,
exam_name
,
time_limit_mins
,
due_date
=
None
,
is_proctored
=
True
,
is_practice_exam
=
False
,
external_id
=
None
,
is_active
=
True
):
is_proctored
=
True
,
is_practice_exam
=
False
,
external_id
=
None
,
is_active
=
True
):
"""
"""
...
...
edx_proctoring/tests/test_api.py
View file @
ad14deba
...
@@ -31,7 +31,6 @@ from edx_proctoring.api import (
...
@@ -31,7 +31,6 @@ from edx_proctoring.api import (
remove_exam_attempt
,
remove_exam_attempt
,
get_all_exam_attempts
,
get_all_exam_attempts
,
get_filtered_exam_attempts
,
get_filtered_exam_attempts
,
is_feature_enabled
,
mark_exam_attempt_timeout
,
mark_exam_attempt_timeout
,
mark_exam_attempt_as_ready
,
mark_exam_attempt_as_ready
,
update_attempt_status
,
update_attempt_status
,
...
@@ -310,18 +309,6 @@ class ProctoredExamApiTests(LoggedInTestCase):
...
@@ -310,18 +309,6 @@ class ProctoredExamApiTests(LoggedInTestCase):
proctored_exam_id
=
self
.
proctored_exam_id
,
user_id
=
self
.
user_id
,
key
=
self
.
key
,
value
=
self
.
value
proctored_exam_id
=
self
.
proctored_exam_id
,
user_id
=
self
.
user_id
,
key
=
self
.
key
,
value
=
self
.
value
)
)
def
test_feature_enabled
(
self
):
"""
Checks the is_feature_enabled method
"""
self
.
assertFalse
(
is_feature_enabled
())
with
patch
.
dict
(
'django.conf.settings.FEATURES'
,
{
'ENABLE_PROCTORED_EXAMS'
:
False
}):
self
.
assertFalse
(
is_feature_enabled
())
with
patch
.
dict
(
'django.conf.settings.FEATURES'
,
{
'ENABLE_PROCTORED_EXAMS'
:
True
}):
self
.
assertTrue
(
is_feature_enabled
())
def
test_create_duplicate_exam
(
self
):
def
test_create_duplicate_exam
(
self
):
"""
"""
Test to create a proctored exam that has already exist in the
Test to create a proctored exam that has already exist in the
...
...
setup.py
View file @
ad14deba
...
@@ -34,7 +34,7 @@ def load_requirements(*requirements_paths):
...
@@ -34,7 +34,7 @@ def load_requirements(*requirements_paths):
setup
(
setup
(
name
=
'edx-proctoring'
,
name
=
'edx-proctoring'
,
version
=
'0.10.1
3
'
,
version
=
'0.10.1
4
'
,
description
=
'Proctoring subsystem for Open edX'
,
description
=
'Proctoring subsystem for Open edX'
,
long_description
=
open
(
'README.md'
)
.
read
(),
long_description
=
open
(
'README.md'
)
.
read
(),
author
=
'edX'
,
author
=
'edX'
,
...
...
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