diff --git a/src/problem_bank_scripts/problem_bank_scripts.py b/src/problem_bank_scripts/problem_bank_scripts.py index 28a93438..3e2d6175 100644 --- a/src/problem_bank_scripts/problem_bank_scripts.py +++ b/src/problem_bank_scripts/problem_bank_scripts.py @@ -903,8 +903,13 @@ def process_workspace(part_name, parsed_question, data_dict): html += f"""""" + html += f"""\n""" + if parsed_question["header"][part_name].get("gradingMethod", None) == "External": - html += f"""\n\t\n\t""" + html += f"""\n\n""" + + html += f"""\n\n""" + return replace_tags(html) diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/file1.txt b/tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/file1.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/file1.txt rename to tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/file1.txt diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/file2.txt b/tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/file2.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/file2.txt rename to tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/file2.txt diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/filebad.txt b/tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/filebad.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/filebad.txt rename to tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/filebad.txt diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/q16_workspaces.md b/tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/q17_workspaces.md similarity index 95% rename from tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/q16_workspaces.md rename to tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/q17_workspaces.md index a1e11c53..3ca8a706 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/q16_workspaces.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/q17_workspaces.md @@ -120,14 +120,8 @@ Once you complete these tasks, click on "Save & Grade" below. ### pl-submission-panel - - - +Everything here will get inserted directly into the pl-submission-panel element at the end of the `question.html`. +Please remove this section if it is not application for this question. ### pl-answer-panel diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/workspace/file1.txt b/tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/workspace/file1.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/workspace/file1.txt rename to tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/workspace/file1.txt diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/workspace/file2.txt b/tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/workspace/file2.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/workspace/file2.txt rename to tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/workspace/file2.txt diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/workspace/filebad.txt b/tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/workspace/filebad.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/instructor/q16_workspaces/workspace/filebad.txt rename to tests/test_question_templates/question_expected_outputs/instructor/q17_workspaces/workspace/filebad.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/info.json similarity index 81% rename from tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/info.json rename to tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/info.json index 221ffeb9..ff6de953 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/info.json @@ -1,5 +1,5 @@ { - "uuid": "fc0d8086-108a-3418-a5d7-498e9af0bd74", + "uuid": "a27bed7b-7fe1-3092-9be7-82e4d2799c82", "title": "Moving and copying files", "topic": "000.Template", "tags": [ @@ -7,8 +7,8 @@ "DEV" ], "type": "v3", - "singleVariant": false, "partialCredit": true, + "showCorrectAnswer": false, "workspaceOptions": { "image": "prairielearn/workspace-xtermjs", "port": 8080, @@ -21,5 +21,5 @@ "newdir/file2_new.txt" ] }, - "showCorrectAnswer": false + "singleVariant": false } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/question.html b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/question.html similarity index 82% rename from tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/question.html rename to tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/question.html index 83e23818..e5c49dc9 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/question.html +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/question.html @@ -14,14 +14,15 @@ -