From 4885c7a6742dad7647e90f874b091fea81bfff84 Mon Sep 17 00:00:00 2001 From: Bluesy1 <68259537+Bluesy1@users.noreply.github.com> Date: Mon, 27 May 2024 11:56:32 -0700 Subject: [PATCH 1/2] Rename ``q16_workspace`` to ``q17_workspace`` --- .../instructor/{q16_workspaces => q17_workspaces}/file1.txt | 0 .../instructor/{q16_workspaces => q17_workspaces}/file2.txt | 0 .../instructor/{q16_workspaces => q17_workspaces}/filebad.txt | 0 .../q16_workspaces.md => q17_workspaces/q17_workspaces.md} | 0 .../{q16_workspaces => q17_workspaces}/workspace/file1.txt | 0 .../{q16_workspaces => q17_workspaces}/workspace/file2.txt | 0 .../{q16_workspaces => q17_workspaces}/workspace/filebad.txt | 0 .../prairielearn-dev/{q16_workspaces => q17_workspaces}/info.json | 0 .../{q16_workspaces => q17_workspaces}/question.html | 0 .../prairielearn-dev/{q16_workspaces => q17_workspaces}/server.py | 0 .../serverFilesQuestion/file1.txt | 0 .../serverFilesQuestion/file2.txt | 0 .../serverFilesQuestion/filebad.txt | 0 .../{q16_workspaces => q17_workspaces}/workspace/file1.txt | 0 .../{q16_workspaces => q17_workspaces}/workspace/file2.txt | 0 .../{q16_workspaces => q17_workspaces}/workspace/filebad.txt | 0 .../prairielearn/{q16_workspaces => q17_workspaces}/info.json | 0 .../prairielearn/{q16_workspaces => q17_workspaces}/question.html | 0 .../prairielearn/{q16_workspaces => q17_workspaces}/server.py | 0 .../serverFilesQuestion/file1.txt | 0 .../serverFilesQuestion/file2.txt | 0 .../serverFilesQuestion/filebad.txt | 0 .../{q16_workspaces => q17_workspaces}/workspace/file1.txt | 0 .../{q16_workspaces => q17_workspaces}/workspace/file2.txt | 0 .../{q16_workspaces => q17_workspaces}/workspace/filebad.txt | 0 .../q16_workspaces.md => q17_workspaces/q17_workspaces.md} | 0 .../public/{q16_workspaces => q17_workspaces}/workspace/file1.txt | 0 .../public/{q16_workspaces => q17_workspaces}/workspace/file2.txt | 0 .../{q16_workspaces => q17_workspaces}/workspace/filebad.txt | 0 .../question_inputs/{q16_workspaces => q17_workspaces}/file1.txt | 0 .../question_inputs/{q16_workspaces => q17_workspaces}/file2.txt | 0 .../{q16_workspaces => q17_workspaces}/filebad.txt | 0 .../q16_workspaces.md => q17_workspaces/q17_workspaces.md} | 0 .../{q16_workspaces => q17_workspaces}/workspace/file1.txt | 0 .../{q16_workspaces => q17_workspaces}/workspace/file2.txt | 0 .../{q16_workspaces => q17_workspaces}/workspace/filebad.txt | 0 36 files changed, 0 insertions(+), 0 deletions(-) rename tests/test_question_templates/question_expected_outputs/instructor/{q16_workspaces => q17_workspaces}/file1.txt (100%) rename tests/test_question_templates/question_expected_outputs/instructor/{q16_workspaces => q17_workspaces}/file2.txt (100%) rename tests/test_question_templates/question_expected_outputs/instructor/{q16_workspaces => q17_workspaces}/filebad.txt (100%) rename tests/test_question_templates/question_expected_outputs/instructor/{q16_workspaces/q16_workspaces.md => q17_workspaces/q17_workspaces.md} (100%) rename tests/test_question_templates/question_expected_outputs/instructor/{q16_workspaces => q17_workspaces}/workspace/file1.txt (100%) rename tests/test_question_templates/question_expected_outputs/instructor/{q16_workspaces => q17_workspaces}/workspace/file2.txt (100%) rename tests/test_question_templates/question_expected_outputs/instructor/{q16_workspaces => q17_workspaces}/workspace/filebad.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn-dev/{q16_workspaces => q17_workspaces}/info.json (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn-dev/{q16_workspaces => q17_workspaces}/question.html (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn-dev/{q16_workspaces => q17_workspaces}/server.py (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn-dev/{q16_workspaces => q17_workspaces}/serverFilesQuestion/file1.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn-dev/{q16_workspaces => q17_workspaces}/serverFilesQuestion/file2.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn-dev/{q16_workspaces => q17_workspaces}/serverFilesQuestion/filebad.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn-dev/{q16_workspaces => q17_workspaces}/workspace/file1.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn-dev/{q16_workspaces => q17_workspaces}/workspace/file2.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn-dev/{q16_workspaces => q17_workspaces}/workspace/filebad.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn/{q16_workspaces => q17_workspaces}/info.json (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn/{q16_workspaces => q17_workspaces}/question.html (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn/{q16_workspaces => q17_workspaces}/server.py (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn/{q16_workspaces => q17_workspaces}/serverFilesQuestion/file1.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn/{q16_workspaces => q17_workspaces}/serverFilesQuestion/file2.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn/{q16_workspaces => q17_workspaces}/serverFilesQuestion/filebad.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn/{q16_workspaces => q17_workspaces}/workspace/file1.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn/{q16_workspaces => q17_workspaces}/workspace/file2.txt (100%) rename tests/test_question_templates/question_expected_outputs/prairielearn/{q16_workspaces => q17_workspaces}/workspace/filebad.txt (100%) rename tests/test_question_templates/question_expected_outputs/public/{q16_workspaces/q16_workspaces.md => q17_workspaces/q17_workspaces.md} (100%) rename tests/test_question_templates/question_expected_outputs/public/{q16_workspaces => q17_workspaces}/workspace/file1.txt (100%) rename tests/test_question_templates/question_expected_outputs/public/{q16_workspaces => q17_workspaces}/workspace/file2.txt (100%) rename tests/test_question_templates/question_expected_outputs/public/{q16_workspaces => q17_workspaces}/workspace/filebad.txt (100%) rename tests/test_question_templates/question_inputs/{q16_workspaces => q17_workspaces}/file1.txt (100%) rename tests/test_question_templates/question_inputs/{q16_workspaces => q17_workspaces}/file2.txt (100%) rename tests/test_question_templates/question_inputs/{q16_workspaces => q17_workspaces}/filebad.txt (100%) rename tests/test_question_templates/question_inputs/{q16_workspaces/q16_workspaces.md => q17_workspaces/q17_workspaces.md} (100%) rename tests/test_question_templates/question_inputs/{q16_workspaces => q17_workspaces}/workspace/file1.txt (100%) rename tests/test_question_templates/question_inputs/{q16_workspaces => q17_workspaces}/workspace/file2.txt (100%) rename tests/test_question_templates/question_inputs/{q16_workspaces => q17_workspaces}/workspace/filebad.txt (100%) 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 100% 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 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 100% 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 diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/question.html b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/question.html similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/question.html rename to tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/question.html diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/server.py similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/server.py rename to tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/server.py diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/serverFilesQuestion/file1.txt b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/serverFilesQuestion/file1.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/serverFilesQuestion/file1.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/serverFilesQuestion/file1.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/serverFilesQuestion/file2.txt b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/serverFilesQuestion/file2.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/serverFilesQuestion/file2.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/serverFilesQuestion/file2.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/serverFilesQuestion/filebad.txt b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/serverFilesQuestion/filebad.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/serverFilesQuestion/filebad.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/serverFilesQuestion/filebad.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/workspace/file1.txt b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/workspace/file1.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/workspace/file1.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/workspace/file1.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/workspace/file2.txt b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/workspace/file2.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/workspace/file2.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/workspace/file2.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/workspace/filebad.txt b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/workspace/filebad.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_workspaces/workspace/filebad.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/workspace/filebad.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/info.json similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/info.json rename to tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/info.json diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/question.html b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/question.html similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/question.html rename to tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/question.html diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/server.py similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/server.py rename to tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/server.py diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/serverFilesQuestion/file1.txt b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/serverFilesQuestion/file1.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/serverFilesQuestion/file1.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/serverFilesQuestion/file1.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/serverFilesQuestion/file2.txt b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/serverFilesQuestion/file2.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/serverFilesQuestion/file2.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/serverFilesQuestion/file2.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/serverFilesQuestion/filebad.txt b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/serverFilesQuestion/filebad.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/serverFilesQuestion/filebad.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/serverFilesQuestion/filebad.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/workspace/file1.txt b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/workspace/file1.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/workspace/file1.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/workspace/file1.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/workspace/file2.txt b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/workspace/file2.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/workspace/file2.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/workspace/file2.txt diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/workspace/filebad.txt b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/workspace/filebad.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/prairielearn/q16_workspaces/workspace/filebad.txt rename to tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/workspace/filebad.txt diff --git a/tests/test_question_templates/question_expected_outputs/public/q16_workspaces/q16_workspaces.md b/tests/test_question_templates/question_expected_outputs/public/q17_workspaces/q17_workspaces.md similarity index 100% rename from tests/test_question_templates/question_expected_outputs/public/q16_workspaces/q16_workspaces.md rename to tests/test_question_templates/question_expected_outputs/public/q17_workspaces/q17_workspaces.md diff --git a/tests/test_question_templates/question_expected_outputs/public/q16_workspaces/workspace/file1.txt b/tests/test_question_templates/question_expected_outputs/public/q17_workspaces/workspace/file1.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/public/q16_workspaces/workspace/file1.txt rename to tests/test_question_templates/question_expected_outputs/public/q17_workspaces/workspace/file1.txt diff --git a/tests/test_question_templates/question_expected_outputs/public/q16_workspaces/workspace/file2.txt b/tests/test_question_templates/question_expected_outputs/public/q17_workspaces/workspace/file2.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/public/q16_workspaces/workspace/file2.txt rename to tests/test_question_templates/question_expected_outputs/public/q17_workspaces/workspace/file2.txt diff --git a/tests/test_question_templates/question_expected_outputs/public/q16_workspaces/workspace/filebad.txt b/tests/test_question_templates/question_expected_outputs/public/q17_workspaces/workspace/filebad.txt similarity index 100% rename from tests/test_question_templates/question_expected_outputs/public/q16_workspaces/workspace/filebad.txt rename to tests/test_question_templates/question_expected_outputs/public/q17_workspaces/workspace/filebad.txt diff --git a/tests/test_question_templates/question_inputs/q16_workspaces/file1.txt b/tests/test_question_templates/question_inputs/q17_workspaces/file1.txt similarity index 100% rename from tests/test_question_templates/question_inputs/q16_workspaces/file1.txt rename to tests/test_question_templates/question_inputs/q17_workspaces/file1.txt diff --git a/tests/test_question_templates/question_inputs/q16_workspaces/file2.txt b/tests/test_question_templates/question_inputs/q17_workspaces/file2.txt similarity index 100% rename from tests/test_question_templates/question_inputs/q16_workspaces/file2.txt rename to tests/test_question_templates/question_inputs/q17_workspaces/file2.txt diff --git a/tests/test_question_templates/question_inputs/q16_workspaces/filebad.txt b/tests/test_question_templates/question_inputs/q17_workspaces/filebad.txt similarity index 100% rename from tests/test_question_templates/question_inputs/q16_workspaces/filebad.txt rename to tests/test_question_templates/question_inputs/q17_workspaces/filebad.txt diff --git a/tests/test_question_templates/question_inputs/q16_workspaces/q16_workspaces.md b/tests/test_question_templates/question_inputs/q17_workspaces/q17_workspaces.md similarity index 100% rename from tests/test_question_templates/question_inputs/q16_workspaces/q16_workspaces.md rename to tests/test_question_templates/question_inputs/q17_workspaces/q17_workspaces.md diff --git a/tests/test_question_templates/question_inputs/q16_workspaces/workspace/file1.txt b/tests/test_question_templates/question_inputs/q17_workspaces/workspace/file1.txt similarity index 100% rename from tests/test_question_templates/question_inputs/q16_workspaces/workspace/file1.txt rename to tests/test_question_templates/question_inputs/q17_workspaces/workspace/file1.txt diff --git a/tests/test_question_templates/question_inputs/q16_workspaces/workspace/file2.txt b/tests/test_question_templates/question_inputs/q17_workspaces/workspace/file2.txt similarity index 100% rename from tests/test_question_templates/question_inputs/q16_workspaces/workspace/file2.txt rename to tests/test_question_templates/question_inputs/q17_workspaces/workspace/file2.txt diff --git a/tests/test_question_templates/question_inputs/q16_workspaces/workspace/filebad.txt b/tests/test_question_templates/question_inputs/q17_workspaces/workspace/filebad.txt similarity index 100% rename from tests/test_question_templates/question_inputs/q16_workspaces/workspace/filebad.txt rename to tests/test_question_templates/question_inputs/q17_workspaces/workspace/filebad.txt From 7645ced674c052b51ad0b7354d8e631d42948f1c Mon Sep 17 00:00:00 2001 From: Bluesy1 <68259537+Bluesy1@users.noreply.github.com> Date: Mon, 27 May 2024 12:04:05 -0700 Subject: [PATCH 2/2] Make workspace feedback automatically added by PBS --- src/problem_bank_scripts/problem_bank_scripts.py | 7 ++++++- .../instructor/q17_workspaces/q17_workspaces.md | 10 ++-------- .../prairielearn-dev/q17_workspaces/info.json | 6 +++--- .../prairielearn-dev/q17_workspaces/question.html | 15 ++++++++------- .../prairielearn/q17_workspaces/info.json | 6 +++--- .../prairielearn/q17_workspaces/question.html | 15 ++++++++------- .../public/q17_workspaces/q17_workspaces.md | 10 ++-------- .../q17_workspaces/q17_workspaces.md | 10 ++-------- 8 files changed, 34 insertions(+), 45 deletions(-) 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/q17_workspaces/q17_workspaces.md b/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/q17_workspaces/q17_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/prairielearn-dev/q17_workspaces/info.json b/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/q17_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-dev/q17_workspaces/question.html b/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-dev/q17_workspaces/question.html +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/question.html @@ -14,14 +14,15 @@ -