Skip to content

Commit

Permalink
fixup: Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xitij2000 committed Jan 30, 2024
1 parent c9f583f commit f8ff4aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions freetextresponse/tests/validate_field_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
"min_word_count": 2,
"submitted_message": "",
"result": "Submission Received Message cannot be blank"
},
"submission_message_blank_null_max_attempts": {
"weight": 0,
"max_attempts": null,
"max_word_count": 3,
"min_word_count": 2,
"submitted_message": "",
"result": "Submission Received Message cannot be blank"
}
}

2 changes: 1 addition & 1 deletion freetextresponse/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from xblock.utils.resources import ResourceLoader
from xblock.utils.studio_editable import StudioEditableXBlockMixin
except ModuleNotFoundError:
except ModuleNotFoundError: # pragma: no cover
# For backward compatibility with releases older than Quince.
from xblockutils.resources import ResourceLoader
from xblockutils.studio_editable import StudioEditableXBlockMixin
Expand Down

0 comments on commit f8ff4aa

Please sign in to comment.