diff --git a/freetextresponse/tests/validate_field_data.json b/freetextresponse/tests/validate_field_data.json index d99c8c81..935626d8 100644 --- a/freetextresponse/tests/validate_field_data.json +++ b/freetextresponse/tests/validate_field_data.json @@ -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" } } diff --git a/freetextresponse/views.py b/freetextresponse/views.py index 5e654fe7..bb409448 100644 --- a/freetextresponse/views.py +++ b/freetextresponse/views.py @@ -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