diff --git a/lms/lib/xblock/test/test_mixin.py b/lms/lib/xblock/test/test_mixin.py index eeb0d8e680..d97666baeb 100644 --- a/lms/lib/xblock/test/test_mixin.py +++ b/lms/lib/xblock/test/test_mixin.py @@ -121,3 +121,25 @@ class XBlockGroupAccessTest(LmsXBlockMixinTestCase): 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.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) diff --git a/requirements/edx/github.txt b/requirements/edx/github.txt index 05904a736e..3284a5e1c5 100644 --- a/requirements/edx/github.txt +++ b/requirements/edx/github.txt @@ -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-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/edx-ora2.git@release-2014-10-27T19.33#egg=edx-ora2 +-e git+https://github.com/edx/edx-ora2.git@release-2014-12-17T15.53#egg=edx-ora2 -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/i18n-tools.git@56f048af9b6868613c14aeae760548834c495011#egg=i18n-tools