Skip to content
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix OCQ tests for file inclusion fails.
  • Loading branch information
davis68 authored and karthiksharma98 committed Apr 21, 2021
commit 76d31c3f92039dc1e5b948b78df0058e4671a648
4 changes: 2 additions & 2 deletions tests/test_pages/test_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def test_question_without_correct_code(self):
self.assertResponseContextAnswerFeedbackCorrectnessEquals(resp, 1)

def test_data_files_missing_random_question_data_file_octave(self):
file_name = "foo"
file_name = "question-data/random-data.m"
markdown = (
markdowns.OCTAVE_CODE_MARKDWON_PATTERN_WITH_DATAFILES
% {"extra_data_file": "- %s" % file_name}
Expand All @@ -328,7 +328,7 @@ def test_data_files_missing_random_question_data_file_bad_format_octave(self):
self.assertEqual(resp.status_code, 200)
self.assertSandboxNotHasValidPage(resp)
self.assertResponseContextContains(
resp, PAGE_ERRORS, "data file '%s' not found" % "['foo', 'bar']")
resp, PAGE_ERRORS, "data file '%s' not found" % "question-data/random-data.m")

def test_not_multiple_submit_warning_octave(self):
markdown = (
Expand Down