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
dc7f09fc
Commit
dc7f09fc
authored
Oct 01, 2015
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add self_paced field to course module.
parent
eaf6be2a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
cms/djangoapps/models/settings/course_metadata.py
+1
-0
common/lib/xmodule/xmodule/course_module.py
+11
-0
common/lib/xmodule/xmodule/tests/test_course_module.py
+11
-0
No files found.
cms/djangoapps/models/settings/course_metadata.py
View file @
dc7f09fc
...
...
@@ -50,6 +50,7 @@ class CourseMetadata(object):
'is_proctored_enabled'
,
'is_time_limited'
,
'is_practice_exam'
,
'self_paced'
]
@classmethod
...
...
common/lib/xmodule/xmodule/course_module.py
View file @
dc7f09fc
...
...
@@ -928,6 +928,17 @@ class CourseFields(object):
scope
=
Scope
.
settings
,
)
self_paced
=
Boolean
(
display_name
=
_
(
"Self Paced"
),
help
=
_
(
"Set this to
\"
true
\"
to mark this course as self-paced. Self-paced courses do not have "
"due dates for assignments, and students can progress through the course at any rate before "
"the course ends."
),
default
=
False
,
scope
=
Scope
.
settings
)
class
CourseModule
(
CourseFields
,
SequenceModule
):
# pylint: disable=abstract-method
"""
...
...
common/lib/xmodule/xmodule/tests/test_course_module.py
View file @
dc7f09fc
...
...
@@ -354,6 +354,17 @@ class TeamsConfigurationTestCase(unittest.TestCase):
self
.
assertEqual
(
self
.
course
.
teams_topics
,
topics
)
class
SelfPacedTestCase
(
unittest
.
TestCase
):
"""Tests for self-paced courses."""
def
setUp
(
self
):
super
(
SelfPacedTestCase
,
self
)
.
setUp
()
self
.
course
=
get_dummy_course
(
'2012-12-02T12:00'
)
def
test_default
(
self
):
self
.
assertFalse
(
self
.
course
.
self_paced
)
class
CourseDescriptorTestCase
(
unittest
.
TestCase
):
"""
Tests for a select few functions from CourseDescriptor.
...
...
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