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
66ab1655
Commit
66ab1655
authored
Dec 17, 2014
by
Fred Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6291 from edx/hotfix/2014-12-17
Hotfix/2014 12 17
parents
c4bbf49b
4d2df01d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
+23
-1
lms/lib/xblock/test/test_mixin.py
+22
-0
requirements/edx/github.txt
+1
-1
No files found.
lms/lib/xblock/test/test_mixin.py
View file @
66ab1655
...
@@ -121,3 +121,25 @@ class XBlockGroupAccessTest(LmsXBlockMixinTestCase):
...
@@ -121,3 +121,25 @@ class XBlockGroupAccessTest(LmsXBlockMixinTestCase):
self
.
video
.
group_access
[
self
.
user_partition
.
id
]
=
[
self
.
group2
.
id
,
999
]
# pylint: disable=no-member
self
.
video
.
group_access
[
self
.
user_partition
.
id
]
=
[
self
.
group2
.
id
,
999
]
# pylint: disable=no-member
self
.
assertFalse
(
self
.
video
.
is_visible_to_group
(
self
.
user_partition
,
self
.
group1
))
self
.
assertFalse
(
self
.
video
.
is_visible_to_group
(
self
.
user_partition
,
self
.
group1
))
self
.
assertTrue
(
self
.
video
.
is_visible_to_group
(
self
.
user_partition
,
self
.
group2
))
self
.
assertTrue
(
self
.
video
.
is_visible_to_group
(
self
.
user_partition
,
self
.
group2
))
class
OpenAssessmentBlockMixinTestCase
(
ModuleStoreTestCase
):
"""
Tests for OpenAssessmentBlock mixin.
"""
def
setUp
(
self
):
super
(
OpenAssessmentBlockMixinTestCase
,
self
)
.
setUp
()
self
.
course
=
CourseFactory
.
create
()
self
.
section
=
ItemFactory
.
create
(
parent
=
self
.
course
,
category
=
'chapter'
,
display_name
=
'Test Section'
)
self
.
open_assessment
=
ItemFactory
.
create
(
parent
=
self
.
section
,
category
=
"openassessment"
,
display_name
=
"untitled"
,
)
def
test_has_score
(
self
):
"""
Test has_score is true for ora2 problems.
"""
self
.
assertTrue
(
self
.
open_assessment
.
has_score
)
requirements/edx/github.txt
View file @
66ab1655
...
@@ -30,7 +30,7 @@ git+https://github.com/mitocw/django-cas.git@60a5b8e5a62e63e0d5d224a87f0b489201a
...
@@ -30,7 +30,7 @@ git+https://github.com/mitocw/django-cas.git@60a5b8e5a62e63e0d5d224a87f0b489201a
-e git+https://github.com/edx/bok-choy.git@4a259e3548a19e41cc39433caf68ea58d10a27ba#egg=bok_choy
-e git+https://github.com/edx/bok-choy.git@4a259e3548a19e41cc39433caf68ea58d10a27ba#egg=bok_choy
-e git+https://github.com/edx-solutions/django-splash.git@7579d052afcf474ece1239153cffe1c89935bc4f#egg=django-splash
-e git+https://github.com/edx-solutions/django-splash.git@7579d052afcf474ece1239153cffe1c89935bc4f#egg=django-splash
-e git+https://github.com/edx/acid-block.git@e46f9cda8a03e121a00c7e347084d142d22ebfb7#egg=acid-xblock
-e git+https://github.com/edx/acid-block.git@e46f9cda8a03e121a00c7e347084d142d22ebfb7#egg=acid-xblock
-e git+https://github.com/edx/edx-ora2.git@release-2014-1
0-27T19.3
3#egg=edx-ora2
-e git+https://github.com/edx/edx-ora2.git@release-2014-1
2-17T15.5
3#egg=edx-ora2
-e git+https://github.com/edx/opaque-keys.git@1254ed4d615a428591850656f39f26509b86d30a#egg=opaque-keys
-e git+https://github.com/edx/opaque-keys.git@1254ed4d615a428591850656f39f26509b86d30a#egg=opaque-keys
-e git+https://github.com/edx/ease.git@97de68448e5495385ba043d3091f570a699d5b5f#egg=ease
-e git+https://github.com/edx/ease.git@97de68448e5495385ba043d3091f570a699d5b5f#egg=ease
-e git+https://github.com/edx/i18n-tools.git@56f048af9b6868613c14aeae760548834c495011#egg=i18n-tools
-e git+https://github.com/edx/i18n-tools.git@56f048af9b6868613c14aeae760548834c495011#egg=i18n-tools
...
...
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