Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jansenk committed Aug 31, 2023
1 parent 853e569 commit 4f7fbc9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions openassessment/xblock/test/test_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ def test_unavailable(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': False,
'file_upload_response': None,
'file_upload_type': None,
Expand Down Expand Up @@ -735,6 +736,7 @@ def test_unavailable_submitted(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': False,
'file_upload_response': None,
'file_upload_type': None,
Expand All @@ -759,6 +761,7 @@ def test_open_unanswered(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': True,
'file_upload_response': None,
'file_upload_type': None,
Expand Down Expand Up @@ -920,6 +923,7 @@ def test_open_no_deadline(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': True,
'file_upload_response': None,
'file_upload_type': None,
Expand Down Expand Up @@ -960,6 +964,7 @@ def test_open_saved_response(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': True,
'file_upload_response': None,
'file_upload_type': None,
Expand Down Expand Up @@ -1120,6 +1125,7 @@ def test_open_saved_response_misaligned_file_data(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': True,
'file_upload_response': 'optional',
'file_upload_type': 'pdf-and-image',
Expand Down Expand Up @@ -1271,6 +1277,7 @@ def test_open_saved_response_old_format(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': True,
'file_upload_response': None,
'file_upload_type': None,
Expand Down Expand Up @@ -1321,6 +1328,7 @@ def test_open_submitted(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': False,
'file_upload_response': None,
'file_upload_type': None,
Expand Down Expand Up @@ -1360,6 +1368,7 @@ def test_cancelled_submission(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': False,
'file_upload_response': None,
'file_upload_type': None,
Expand Down Expand Up @@ -1417,6 +1426,7 @@ def test_cancelled_team_submission(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': False,
'file_upload_response': None,
'file_upload_type': None,
Expand Down Expand Up @@ -1457,6 +1467,7 @@ def test_open_submitted_old_format(self, xblock, mock_get_user_submission):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': False,
'file_upload_response': None,
'file_upload_type': None,
Expand Down Expand Up @@ -1484,6 +1495,7 @@ def test_closed_incomplete(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': False,
'file_upload_response': None,
'file_upload_type': None,
Expand All @@ -1510,6 +1522,7 @@ def test_closed_submitted(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': False,
'file_upload_response': None,
'file_upload_type': None,
Expand Down Expand Up @@ -1547,6 +1560,7 @@ def test_open_graded(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': False,
'file_upload_response': None,
'file_upload_type': None,
Expand Down Expand Up @@ -1582,6 +1596,7 @@ def test_closed_graded(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': False,
'has_real_user': False,
'file_upload_response': None,
Expand Down Expand Up @@ -1769,6 +1784,7 @@ def test_team_has_already_submitted(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': True,
'has_real_user': True,
'file_upload_response': None,
Expand Down Expand Up @@ -1801,6 +1817,7 @@ def test_load_file_extension_presets(self, xblock):
'allow_latex': False,
'allow_multiple_files': True,
'base_asset_url': None,
'date_config_type': 'manual',
'enable_delete_files': True,
'file_upload_response': 'optional',
'file_upload_type': 'pdf-and-image',
Expand Down

0 comments on commit 4f7fbc9

Please sign in to comment.