Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, April 9th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
fe545e05
Commit
fe545e05
authored
9 years ago
by
Toby Lawrence
Browse files
Options
Downloads
Patches
Plain Diff
Quality fixes.
parent
e2cbb547
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cms/djangoapps/contentstore/tests/test_gating.py
+13
-13
13 additions, 13 deletions
cms/djangoapps/contentstore/tests/test_gating.py
cms/djangoapps/contentstore/tests/test_transcripts_utils.py
+1
-0
1 addition, 0 deletions
cms/djangoapps/contentstore/tests/test_transcripts_utils.py
with
14 additions
and
13 deletions
cms/djangoapps/contentstore/tests/test_gating.py
+
13
−
13
View file @
fe545e05
...
...
@@ -13,32 +13,32 @@ class TestHandleItemDeleted(ModuleStoreTestCase, MilestonesTestCaseMixin):
"""
Test case for handle_score_changed django signal handler
"""
def
setUp
(
cls
):
def
setUp
(
self
):
"""
Initial data setup
"""
super
(
TestHandleItemDeleted
,
cls
).
setUp
()
super
(
TestHandleItemDeleted
,
self
).
setUp
()
cls
.
course
=
CourseFactory
.
create
()
cls
.
course
.
enable_subsection_gating
=
True
cls
.
course
.
save
()
cls
.
chapter
=
ItemFactory
.
create
(
parent
=
cls
.
course
,
self
.
course
=
CourseFactory
.
create
()
self
.
course
.
enable_subsection_gating
=
True
self
.
course
.
save
()
self
.
chapter
=
ItemFactory
.
create
(
parent
=
self
.
course
,
category
=
"
chapter
"
,
display_name
=
"
Chapter
"
)
cls
.
open_seq
=
ItemFactory
.
create
(
parent
=
cls
.
chapter
,
self
.
open_seq
=
ItemFactory
.
create
(
parent
=
self
.
chapter
,
category
=
'
sequential
'
,
display_name
=
"
Open Sequential
"
)
cls
.
gated_seq
=
ItemFactory
.
create
(
parent
=
cls
.
chapter
,
self
.
gated_seq
=
ItemFactory
.
create
(
parent
=
self
.
chapter
,
category
=
'
sequential
'
,
display_name
=
"
Gated Sequential
"
)
gating_api
.
add_prerequisite
(
cls
.
course
.
id
,
cls
.
open_seq
.
location
)
gating_api
.
set_required_content
(
cls
.
course
.
id
,
cls
.
gated_seq
.
location
,
cls
.
open_seq
.
location
,
100
)
gating_api
.
add_prerequisite
(
self
.
course
.
id
,
self
.
open_seq
.
location
)
gating_api
.
set_required_content
(
self
.
course
.
id
,
self
.
gated_seq
.
location
,
self
.
open_seq
.
location
,
100
)
@patch
(
'
contentstore.signals.gating_api.set_required_content
'
)
@patch
(
'
contentstore.signals.gating_api.remove_prerequisite
'
)
...
...
This diff is collapsed.
Click to expand it.
cms/djangoapps/contentstore/tests/test_transcripts_utils.py
+
1
−
0
View file @
fe545e05
...
...
@@ -122,6 +122,7 @@ class TestSaveSubsToStore(SharedModuleStoreTestCase):
cls
.
content_location_unjsonable
=
StaticContent
.
compute_location
(
cls
.
course
.
id
,
filename_unjsonable
)
def
setUp
(
self
):
super
(
TestSaveSubsToStore
,
self
).
setUp
()
self
.
addCleanup
(
self
.
clear_subs_content
)
self
.
clear_subs_content
()
...
...
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