fix: use peer assessment as default ora template (#30705)

* fix: use peer assessment as default ora template

* chore: bump ora

* test: update test after ORA update
This commit is contained in:
Jansen Kantor
2022-07-13 10:21:42 -04:00
committed by GitHub
parent e1c8fb51be
commit 143ea1dbbc
5 changed files with 7 additions and 7 deletions

View File

@@ -313,10 +313,10 @@ def get_component_templates(courselike, library=False): # lint-amnesty, pylint:
# this should use a cms mixed-in class. (cpennington)
template_id = None
display_name = xblock_type_display_name(category, _('Blank')) # this is the Blank Advanced problem
# The first template that is given should be Blank Assessment Template
# The ORA "blank" assessment should be Peer Assessment Only
if category == 'openassessment':
display_name = _("Blank Open Response Assessment")
template_id = "blank-assessment"
display_name = _("Peer Assessment Only")
template_id = "peer-assessment"
templates_for_category.append(
create_template_dict(display_name, category, support_level_without_template, template_id, 'advanced')
)

View File

@@ -2291,7 +2291,7 @@ class TestComponentTemplates(CourseTestCase):
"""
self._verify_basic_component("discussion", "Discussion")
self._verify_basic_component("video", "Video")
self._verify_basic_component("openassessment", "Blank Open Response Assessment", True, 6)
self._verify_basic_component("openassessment", "Peer Assessment Only", True, 5)
self._verify_basic_component_display_name("discussion", "Discussion")
self._verify_basic_component_display_name("video", "Video")
self._verify_basic_component_display_name("openassessment", "Open Response")

View File

@@ -743,7 +743,7 @@ openedx-filters==0.7.0
# via
# -r requirements/edx/base.in
# lti-consumer-xblock
ora2==4.4.2
ora2==4.4.4
# via -r requirements/edx/base.in
oscrypto==1.3.0
# via snowflake-connector-python

View File

@@ -968,7 +968,7 @@ openedx-filters==0.7.0
# via
# -r requirements/edx/testing.txt
# lti-consumer-xblock
ora2==4.4.2
ora2==4.4.4
# via -r requirements/edx/testing.txt
oscrypto==1.3.0
# via

View File

@@ -919,7 +919,7 @@ openedx-filters==0.7.0
# via
# -r requirements/edx/base.txt
# lti-consumer-xblock
ora2==4.4.2
ora2==4.4.4
# via -r requirements/edx/base.txt
oscrypto==1.3.0
# via