From bd3e384d0f7da9164b71d6194160de5cd7f05856 Mon Sep 17 00:00:00 2001 From: Bluesy1 <68259537+Bluesy1@users.noreply.github.com> Date: Thu, 29 Aug 2024 11:22:38 -0700 Subject: [PATCH 1/3] Seed python and numpy random objects when generating markdown outputs --- src/problem_bank_scripts/problem_bank_scripts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/problem_bank_scripts/problem_bank_scripts.py b/src/problem_bank_scripts/problem_bank_scripts.py index ad3c3d1..183c8cc 100644 --- a/src/problem_bank_scripts/problem_bank_scripts.py +++ b/src/problem_bank_scripts/problem_bank_scripts.py @@ -640,6 +640,8 @@ def process_question_md( instructor (bool, optional): Flag to determine if the output is for an instructor or not. Defaults to False. This determines if the solutions are included in the output or not. """ + import random + import numpy try: source_filepath = pathlib.Path(source_filepath).resolve(strict=True) except: @@ -687,6 +689,8 @@ def str_presenter(dumper, data2): with tempfile.TemporaryDirectory(suffix=f"_{output_path.stem}", ignore_cleanup_errors=True) as dirpath: file = pathlib.Path(dirpath).joinpath("server.py") file.write_text(server_py, encoding="utf8") + random.seed(111) + numpy.random.seed(111) # noqa: NPY002 try: code = compile(server_py, file.as_posix(), "exec") exec(code, server) From 9bd4bff1dbce05a6b33a9141afc64fddf1a5ddea Mon Sep 17 00:00:00 2001 From: Bluesy1 <68259537+Bluesy1@users.noreply.github.com> Date: Thu, 29 Aug 2024 11:22:51 -0700 Subject: [PATCH 2/3] Update tests --- .../instructor/q01_multiple-choice/q01_multiple-choice.md | 2 +- .../instructor/q02_number-input/q02_number-input.md | 2 +- .../instructor/q03_dropdown/q03_dropdown.md | 2 +- .../instructor/q04_checkbox/q04_checkbox.md | 2 +- .../q05_multi-part_feedback/q05_multi-part_feedback.md | 2 +- .../q06_number-input_feedback/q06_number-input_feedback.md | 2 +- .../instructor/q07a_symbolic-input/q07a_symbolic-input.md | 2 +- .../instructor/q07b_symbolic-input/q07b_symbolic-input.md | 2 +- .../instructor/q10_integer-input/q10_integer-input.md | 2 +- .../instructor/q11_multi-part/q11_multi-part.md | 2 +- .../instructor/q13_file-editor-input/q13_file-editor-input.md | 2 +- .../instructor/q14_string-input/q14_string-input.md | 2 +- .../instructor/q15_matching/q15_matching.md | 2 +- .../instructor/q16_matrix-input/q16_matrix-input.md | 2 +- .../instructor/q18_integer-input/q18_integer-input.md | 2 +- .../prairielearn-dev/q01_multiple-choice/server.py | 2 +- .../prairielearn-dev/q02_number-input/server.py | 2 +- .../prairielearn-dev/q03_dropdown/server.py | 2 +- .../prairielearn-dev/q04_checkbox/server.py | 2 +- .../prairielearn-dev/q05_multi-part_feedback/server.py | 2 +- .../prairielearn-dev/q06_number-input_feedback/server.py | 2 +- .../prairielearn-dev/q07a_symbolic-input/server.py | 2 +- .../prairielearn-dev/q07b_symbolic-input/server.py | 2 +- .../prairielearn-dev/q10_integer-input/server.py | 2 +- .../prairielearn-dev/q11_multi-part/server.py | 2 +- .../prairielearn-dev/q13_file-editor-input/server.py | 2 +- .../prairielearn-dev/q14_string-input/server.py | 2 +- .../prairielearn-dev/q15_matching/server.py | 2 +- .../prairielearn-dev/q16_matrix-input/server.py | 2 +- .../prairielearn-dev/q18_integer-input/server.py | 2 +- .../prairielearn/q01_multiple-choice/server.py | 2 +- .../prairielearn/q02_number-input/server.py | 2 +- .../prairielearn/q03_dropdown/server.py | 2 +- .../prairielearn/q04_checkbox/server.py | 2 +- .../prairielearn/q05_multi-part_feedback/server.py | 2 +- .../prairielearn/q06_number-input_feedback/server.py | 2 +- .../prairielearn/q07a_symbolic-input/server.py | 2 +- .../prairielearn/q07b_symbolic-input/server.py | 2 +- .../prairielearn/q10_integer-input/server.py | 2 +- .../prairielearn/q11_multi-part/server.py | 2 +- .../prairielearn/q13_file-editor-input/server.py | 2 +- .../prairielearn/q14_string-input/server.py | 2 +- .../prairielearn/q15_matching/server.py | 2 +- .../prairielearn/q16_matrix-input/server.py | 2 +- .../prairielearn/q18_integer-input/server.py | 2 +- .../question_inputs/q01_multiple-choice/q01_multiple-choice.md | 2 +- .../question_inputs/q02_number-input/q02_number-input.md | 2 +- .../question_inputs/q03_dropdown/q03_dropdown.md | 2 +- .../question_inputs/q04_checkbox/q04_checkbox.md | 2 +- .../q05_multi-part_feedback/q05_multi-part_feedback.md | 2 +- .../q06_number-input_feedback/q06_number-input_feedback.md | 2 +- .../question_inputs/q07a_symbolic-input/q07a_symbolic-input.md | 2 +- .../question_inputs/q07b_symbolic-input/q07b_symbolic-input.md | 2 +- .../question_inputs/q10_integer-input/q10_integer-input.md | 2 +- .../question_inputs/q11_multi-part/q11_multi-part.md | 2 +- .../q13_file-editor-input/q13_file-editor-input.md | 2 +- .../question_inputs/q14_string-input/q14_string-input.md | 2 +- .../question_inputs/q15_matching/q15_matching.md | 2 +- .../question_inputs/q16_matrix-input/q16_matrix-input.md | 2 +- .../question_inputs/q18_integer-input/q18_integer-input.md | 2 +- 60 files changed, 60 insertions(+), 60 deletions(-) diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q01_multiple-choice/q01_multiple-choice.md b/tests/test_question_templates/question_expected_outputs/instructor/q01_multiple-choice/q01_multiple-choice.md index c96c856..74862ab 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q01_multiple-choice/q01_multiple-choice.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q01_multiple-choice/q01_multiple-choice.md @@ -28,7 +28,7 @@ assets: - test2.png server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q02_number-input/q02_number-input.md b/tests/test_question_templates/question_expected_outputs/instructor/q02_number-input/q02_number-input.md index 97fab2f..5cc3203 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q02_number-input/q02_number-input.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q02_number-input/q02_number-input.md @@ -26,7 +26,7 @@ tags: assets: null server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q03_dropdown/q03_dropdown.md b/tests/test_question_templates/question_expected_outputs/instructor/q03_dropdown/q03_dropdown.md index e59ef38..6f3a690 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q03_dropdown/q03_dropdown.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q03_dropdown/q03_dropdown.md @@ -26,7 +26,7 @@ tags: assets: null server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q04_checkbox/q04_checkbox.md b/tests/test_question_templates/question_expected_outputs/instructor/q04_checkbox/q04_checkbox.md index ca5431f..539c631 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q04_checkbox/q04_checkbox.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q04_checkbox/q04_checkbox.md @@ -26,7 +26,7 @@ tags: assets: null server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q05_multi-part_feedback/q05_multi-part_feedback.md b/tests/test_question_templates/question_expected_outputs/instructor/q05_multi-part_feedback/q05_multi-part_feedback.md index fc9832c..49b9047 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q05_multi-part_feedback/q05_multi-part_feedback.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q05_multi-part_feedback/q05_multi-part_feedback.md @@ -25,7 +25,7 @@ tags: assets: null server: imports: | - import random as rd; rd.seed(111) + import random as rd import numpy as np import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q06_number-input_feedback/q06_number-input_feedback.md b/tests/test_question_templates/question_expected_outputs/instructor/q06_number-input_feedback/q06_number-input_feedback.md index b339a02..fe7a647 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q06_number-input_feedback/q06_number-input_feedback.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q06_number-input_feedback/q06_number-input_feedback.md @@ -37,7 +37,7 @@ tags: assets: null server: imports: | - import random as rd; rd.seed(111) + import random as rd import numpy as np import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q07a_symbolic-input/q07a_symbolic-input.md b/tests/test_question_templates/question_expected_outputs/instructor/q07a_symbolic-input/q07a_symbolic-input.md index 3817a21..4371f35 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q07a_symbolic-input/q07a_symbolic-input.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q07a_symbolic-input/q07a_symbolic-input.md @@ -26,7 +26,7 @@ tags: assets: null server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import sympy as sp import prairielearn as pl diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q07b_symbolic-input/q07b_symbolic-input.md b/tests/test_question_templates/question_expected_outputs/instructor/q07b_symbolic-input/q07b_symbolic-input.md index a927cf8..3602a79 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q07b_symbolic-input/q07b_symbolic-input.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q07b_symbolic-input/q07b_symbolic-input.md @@ -26,7 +26,7 @@ tags: assets: null server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import sympy as sp import prairielearn as pl diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q10_integer-input/q10_integer-input.md b/tests/test_question_templates/question_expected_outputs/instructor/q10_integer-input/q10_integer-input.md index 971c2ab..3821e8b 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q10_integer-input/q10_integer-input.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q10_integer-input/q10_integer-input.md @@ -26,7 +26,7 @@ tags: assets: null server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q11_multi-part/q11_multi-part.md b/tests/test_question_templates/question_expected_outputs/instructor/q11_multi-part/q11_multi-part.md index d0e336e..a0d83e1 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q11_multi-part/q11_multi-part.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q11_multi-part/q11_multi-part.md @@ -28,7 +28,7 @@ assets: - test2.png server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q13_file-editor-input/q13_file-editor-input.md b/tests/test_question_templates/question_expected_outputs/instructor/q13_file-editor-input/q13_file-editor-input.md index 0dbe397..5662ea6 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q13_file-editor-input/q13_file-editor-input.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q13_file-editor-input/q13_file-editor-input.md @@ -37,7 +37,7 @@ externalGradingOptions: entrypoint: /python_autograder/run.sh server: imports: | - import random as rd; rd.seed(111) + import random as rd import math import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q14_string-input/q14_string-input.md b/tests/test_question_templates/question_expected_outputs/instructor/q14_string-input/q14_string-input.md index 7ccfec0..b9cb663 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q14_string-input/q14_string-input.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q14_string-input/q14_string-input.md @@ -25,7 +25,7 @@ tags: - unknown assets: null server: - imports: "import random; random.seed(111) \nimport problem_bank_helpers as pbh\n" + imports: "import random \nimport problem_bank_helpers as pbh\n" generate: | data2 = pbh.create_data2() diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q15_matching/q15_matching.md b/tests/test_question_templates/question_expected_outputs/instructor/q15_matching/q15_matching.md index 6b0bb70..51a1644 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q15_matching/q15_matching.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q15_matching/q15_matching.md @@ -26,7 +26,7 @@ tags: assets: null server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q16_matrix-input/q16_matrix-input.md b/tests/test_question_templates/question_expected_outputs/instructor/q16_matrix-input/q16_matrix-input.md index d89f88f..d229737 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q16_matrix-input/q16_matrix-input.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q16_matrix-input/q16_matrix-input.md @@ -26,7 +26,7 @@ tags: assets: null server: imports: | - import numpy as np; np.random.seed(111) + import numpy as np import problem_bank_helpers as pbh import prairielearn as pl generate: | diff --git a/tests/test_question_templates/question_expected_outputs/instructor/q18_integer-input/q18_integer-input.md b/tests/test_question_templates/question_expected_outputs/instructor/q18_integer-input/q18_integer-input.md index 44f6d28..d378e87 100644 --- a/tests/test_question_templates/question_expected_outputs/instructor/q18_integer-input/q18_integer-input.md +++ b/tests/test_question_templates/question_expected_outputs/instructor/q18_integer-input/q18_integer-input.md @@ -26,7 +26,7 @@ tags: assets: null server: imports: | - import random; random.seed(111) + import random from statistics import median import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q01_multiple-choice/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q01_multiple-choice/server.py index b639aff..a8bd450 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q01_multiple-choice/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q01_multiple-choice/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q02_number-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q02_number-input/server.py index 1ac8fab..884335e 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q02_number-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q02_number-input/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q03_dropdown/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q03_dropdown/server.py index d58dda4..aed7d8a 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q03_dropdown/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q03_dropdown/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q04_checkbox/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q04_checkbox/server.py index 5f74c62..a3410bf 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q04_checkbox/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q04_checkbox/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q05_multi-part_feedback/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q05_multi-part_feedback/server.py index 270adc5..14ccb15 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q05_multi-part_feedback/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q05_multi-part_feedback/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import numpy as np import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q06_number-input_feedback/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q06_number-input_feedback/server.py index 40f9435..56d30ad 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q06_number-input_feedback/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q06_number-input_feedback/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import numpy as np import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07a_symbolic-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07a_symbolic-input/server.py index daf3e4e..9faf556 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07a_symbolic-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07a_symbolic-input/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import sympy as sp import prairielearn as pl diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07b_symbolic-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07b_symbolic-input/server.py index 93d6cfc..c96d27d 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07b_symbolic-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07b_symbolic-input/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import sympy as sp import prairielearn as pl diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q10_integer-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q10_integer-input/server.py index fa7e7c5..49d68a7 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q10_integer-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q10_integer-input/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q11_multi-part/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q11_multi-part/server.py index e98738a..e8512d3 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q11_multi-part/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q11_multi-part/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q13_file-editor-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q13_file-editor-input/server.py index af0133a..ef273cf 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q13_file-editor-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q13_file-editor-input/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import math import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q14_string-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q14_string-input/server.py index 0697f69..2948c75 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q14_string-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q14_string-input/server.py @@ -1,4 +1,4 @@ -import random; random.seed(111) +import random import problem_bank_helpers as pbh def generate(data): diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q15_matching/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q15_matching/server.py index 1126317..c085eaa 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q15_matching/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q15_matching/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_matrix-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_matrix-input/server.py index f25affc..7a2e87d 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_matrix-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_matrix-input/server.py @@ -1,4 +1,4 @@ -import numpy as np; np.random.seed(111) +import numpy as np import problem_bank_helpers as pbh import prairielearn as pl diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q18_integer-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q18_integer-input/server.py index 6974ec6..61ded33 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q18_integer-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q18_integer-input/server.py @@ -1,4 +1,4 @@ -import random; random.seed(111) +import random from statistics import median import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q01_multiple-choice/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q01_multiple-choice/server.py index b639aff..a8bd450 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q01_multiple-choice/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q01_multiple-choice/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q02_number-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q02_number-input/server.py index 1ac8fab..884335e 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q02_number-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q02_number-input/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q03_dropdown/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q03_dropdown/server.py index d58dda4..aed7d8a 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q03_dropdown/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q03_dropdown/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q04_checkbox/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q04_checkbox/server.py index 5f74c62..a3410bf 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q04_checkbox/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q04_checkbox/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q05_multi-part_feedback/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q05_multi-part_feedback/server.py index 270adc5..14ccb15 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q05_multi-part_feedback/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q05_multi-part_feedback/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import numpy as np import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q06_number-input_feedback/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q06_number-input_feedback/server.py index 40f9435..56d30ad 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q06_number-input_feedback/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q06_number-input_feedback/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import numpy as np import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q07a_symbolic-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q07a_symbolic-input/server.py index daf3e4e..9faf556 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q07a_symbolic-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q07a_symbolic-input/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import sympy as sp import prairielearn as pl diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q07b_symbolic-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q07b_symbolic-input/server.py index 93d6cfc..c96d27d 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q07b_symbolic-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q07b_symbolic-input/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import sympy as sp import prairielearn as pl diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q10_integer-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q10_integer-input/server.py index fa7e7c5..49d68a7 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q10_integer-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q10_integer-input/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q11_multi-part/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q11_multi-part/server.py index e98738a..e8512d3 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q11_multi-part/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q11_multi-part/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q13_file-editor-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q13_file-editor-input/server.py index af0133a..ef273cf 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q13_file-editor-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q13_file-editor-input/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import math import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q14_string-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q14_string-input/server.py index 0697f69..2948c75 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q14_string-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q14_string-input/server.py @@ -1,4 +1,4 @@ -import random; random.seed(111) +import random import problem_bank_helpers as pbh def generate(data): diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q15_matching/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q15_matching/server.py index 1126317..c085eaa 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q15_matching/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q15_matching/server.py @@ -1,4 +1,4 @@ -import random as rd; rd.seed(111) +import random as rd import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_matrix-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q16_matrix-input/server.py index f25affc..7a2e87d 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_matrix-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q16_matrix-input/server.py @@ -1,4 +1,4 @@ -import numpy as np; np.random.seed(111) +import numpy as np import problem_bank_helpers as pbh import prairielearn as pl diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q18_integer-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q18_integer-input/server.py index 6974ec6..61ded33 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q18_integer-input/server.py +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q18_integer-input/server.py @@ -1,4 +1,4 @@ -import random; random.seed(111) +import random from statistics import median import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_inputs/q01_multiple-choice/q01_multiple-choice.md b/tests/test_question_templates/question_inputs/q01_multiple-choice/q01_multiple-choice.md index 8c7460f..73e099a 100644 --- a/tests/test_question_templates/question_inputs/q01_multiple-choice/q01_multiple-choice.md +++ b/tests/test_question_templates/question_inputs/q01_multiple-choice/q01_multiple-choice.md @@ -28,7 +28,7 @@ assets: - test2.png server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_inputs/q02_number-input/q02_number-input.md b/tests/test_question_templates/question_inputs/q02_number-input/q02_number-input.md index 6471571..45020d7 100644 --- a/tests/test_question_templates/question_inputs/q02_number-input/q02_number-input.md +++ b/tests/test_question_templates/question_inputs/q02_number-input/q02_number-input.md @@ -26,7 +26,7 @@ tags: assets: server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_inputs/q03_dropdown/q03_dropdown.md b/tests/test_question_templates/question_inputs/q03_dropdown/q03_dropdown.md index cf67496..526b277 100644 --- a/tests/test_question_templates/question_inputs/q03_dropdown/q03_dropdown.md +++ b/tests/test_question_templates/question_inputs/q03_dropdown/q03_dropdown.md @@ -26,7 +26,7 @@ tags: assets: server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_inputs/q04_checkbox/q04_checkbox.md b/tests/test_question_templates/question_inputs/q04_checkbox/q04_checkbox.md index ac7b565..7deb7a2 100644 --- a/tests/test_question_templates/question_inputs/q04_checkbox/q04_checkbox.md +++ b/tests/test_question_templates/question_inputs/q04_checkbox/q04_checkbox.md @@ -26,7 +26,7 @@ tags: assets: server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_inputs/q05_multi-part_feedback/q05_multi-part_feedback.md b/tests/test_question_templates/question_inputs/q05_multi-part_feedback/q05_multi-part_feedback.md index eda7f34..79fd1fa 100644 --- a/tests/test_question_templates/question_inputs/q05_multi-part_feedback/q05_multi-part_feedback.md +++ b/tests/test_question_templates/question_inputs/q05_multi-part_feedback/q05_multi-part_feedback.md @@ -25,7 +25,7 @@ tags: assets: server: imports: | - import random as rd; rd.seed(111) + import random as rd import numpy as np import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_inputs/q06_number-input_feedback/q06_number-input_feedback.md b/tests/test_question_templates/question_inputs/q06_number-input_feedback/q06_number-input_feedback.md index 2253bb2..2750737 100644 --- a/tests/test_question_templates/question_inputs/q06_number-input_feedback/q06_number-input_feedback.md +++ b/tests/test_question_templates/question_inputs/q06_number-input_feedback/q06_number-input_feedback.md @@ -37,7 +37,7 @@ tags: assets: server: imports: | - import random as rd; rd.seed(111) + import random as rd import numpy as np import pandas as pd import problem_bank_helpers as pbh diff --git a/tests/test_question_templates/question_inputs/q07a_symbolic-input/q07a_symbolic-input.md b/tests/test_question_templates/question_inputs/q07a_symbolic-input/q07a_symbolic-input.md index 4c989e7..7072890 100644 --- a/tests/test_question_templates/question_inputs/q07a_symbolic-input/q07a_symbolic-input.md +++ b/tests/test_question_templates/question_inputs/q07a_symbolic-input/q07a_symbolic-input.md @@ -26,7 +26,7 @@ tags: assets: server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import sympy as sp import prairielearn as pl diff --git a/tests/test_question_templates/question_inputs/q07b_symbolic-input/q07b_symbolic-input.md b/tests/test_question_templates/question_inputs/q07b_symbolic-input/q07b_symbolic-input.md index 5d47e29..206f73b 100644 --- a/tests/test_question_templates/question_inputs/q07b_symbolic-input/q07b_symbolic-input.md +++ b/tests/test_question_templates/question_inputs/q07b_symbolic-input/q07b_symbolic-input.md @@ -26,7 +26,7 @@ tags: assets: server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import sympy as sp import prairielearn as pl diff --git a/tests/test_question_templates/question_inputs/q10_integer-input/q10_integer-input.md b/tests/test_question_templates/question_inputs/q10_integer-input/q10_integer-input.md index c66bfc5..a896667 100644 --- a/tests/test_question_templates/question_inputs/q10_integer-input/q10_integer-input.md +++ b/tests/test_question_templates/question_inputs/q10_integer-input/q10_integer-input.md @@ -26,7 +26,7 @@ tags: assets: server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_inputs/q11_multi-part/q11_multi-part.md b/tests/test_question_templates/question_inputs/q11_multi-part/q11_multi-part.md index 4275acb..db5cbee 100644 --- a/tests/test_question_templates/question_inputs/q11_multi-part/q11_multi-part.md +++ b/tests/test_question_templates/question_inputs/q11_multi-part/q11_multi-part.md @@ -28,7 +28,7 @@ assets: - test2.png server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_inputs/q13_file-editor-input/q13_file-editor-input.md b/tests/test_question_templates/question_inputs/q13_file-editor-input/q13_file-editor-input.md index e06c2ba..6f61610 100644 --- a/tests/test_question_templates/question_inputs/q13_file-editor-input/q13_file-editor-input.md +++ b/tests/test_question_templates/question_inputs/q13_file-editor-input/q13_file-editor-input.md @@ -37,7 +37,7 @@ externalGradingOptions: entrypoint: "/python_autograder/run.sh" server: imports: | - import random as rd; rd.seed(111) + import random as rd import math import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_inputs/q14_string-input/q14_string-input.md b/tests/test_question_templates/question_inputs/q14_string-input/q14_string-input.md index a6e74e3..2e3ea59 100644 --- a/tests/test_question_templates/question_inputs/q14_string-input/q14_string-input.md +++ b/tests/test_question_templates/question_inputs/q14_string-input/q14_string-input.md @@ -26,7 +26,7 @@ tags: assets: server: imports: | - import random; random.seed(111) + import random import problem_bank_helpers as pbh generate: | data2 = pbh.create_data2() diff --git a/tests/test_question_templates/question_inputs/q15_matching/q15_matching.md b/tests/test_question_templates/question_inputs/q15_matching/q15_matching.md index e816436..b8f6d0a 100644 --- a/tests/test_question_templates/question_inputs/q15_matching/q15_matching.md +++ b/tests/test_question_templates/question_inputs/q15_matching/q15_matching.md @@ -26,7 +26,7 @@ tags: assets: server: imports: | - import random as rd; rd.seed(111) + import random as rd import pandas as pd import problem_bank_helpers as pbh generate: | diff --git a/tests/test_question_templates/question_inputs/q16_matrix-input/q16_matrix-input.md b/tests/test_question_templates/question_inputs/q16_matrix-input/q16_matrix-input.md index 3707391..158cab5 100644 --- a/tests/test_question_templates/question_inputs/q16_matrix-input/q16_matrix-input.md +++ b/tests/test_question_templates/question_inputs/q16_matrix-input/q16_matrix-input.md @@ -26,7 +26,7 @@ tags: assets: server: imports: | - import numpy as np; np.random.seed(111) + import numpy as np import problem_bank_helpers as pbh import prairielearn as pl generate: | diff --git a/tests/test_question_templates/question_inputs/q18_integer-input/q18_integer-input.md b/tests/test_question_templates/question_inputs/q18_integer-input/q18_integer-input.md index b862387..a125768 100644 --- a/tests/test_question_templates/question_inputs/q18_integer-input/q18_integer-input.md +++ b/tests/test_question_templates/question_inputs/q18_integer-input/q18_integer-input.md @@ -26,7 +26,7 @@ tags: assets: server: imports: | - import random; random.seed(111) + import random from statistics import median import problem_bank_helpers as pbh generate: | From 32acf3ce2e3deec9019cf0ae08f5a6e39fe6b132 Mon Sep 17 00:00:00 2001 From: Bluesy1 <68259537+Bluesy1@users.noreply.github.com> Date: Thu, 29 Aug 2024 11:30:51 -0700 Subject: [PATCH 3/3] update `lastModified` dates --- .../prairielearn-dev/q01_multiple-choice/info.json | 4 ++-- .../prairielearn-dev/q02_number-input/info.json | 4 ++-- .../prairielearn-dev/q03_dropdown/info.json | 4 ++-- .../prairielearn-dev/q04_checkbox/info.json | 4 ++-- .../prairielearn-dev/q05_multi-part_feedback/info.json | 6 +++--- .../prairielearn-dev/q06_number-input_feedback/info.json | 4 ++-- .../prairielearn-dev/q07a_symbolic-input/info.json | 4 ++-- .../prairielearn-dev/q07b_symbolic-input/info.json | 4 ++-- .../prairielearn-dev/q09_file-upload/info.json | 2 +- .../prairielearn-dev/q10_integer-input/info.json | 4 ++-- .../prairielearn-dev/q11_multi-part/info.json | 4 ++-- .../prairielearn-dev/q12_longtext-input/info.json | 2 +- .../prairielearn-dev/q13_file-editor-input/info.json | 8 ++++---- .../prairielearn-dev/q14_string-input/info.json | 4 ++-- .../prairielearn-dev/q15_matching/info.json | 4 ++-- .../prairielearn-dev/q16_matrix-input/info.json | 4 ++-- .../prairielearn-dev/q17_workspaces/info.json | 4 ++-- .../prairielearn-dev/q18_integer-input/info.json | 4 ++-- .../prairielearn/q01_multiple-choice/info.json | 4 ++-- .../prairielearn/q02_number-input/info.json | 4 ++-- .../prairielearn/q03_dropdown/info.json | 4 ++-- .../prairielearn/q04_checkbox/info.json | 4 ++-- .../prairielearn/q05_multi-part_feedback/info.json | 8 ++++---- .../prairielearn/q06_number-input_feedback/info.json | 4 ++-- .../prairielearn/q07a_symbolic-input/info.json | 4 ++-- .../prairielearn/q07b_symbolic-input/info.json | 4 ++-- .../prairielearn/q09_file-upload/info.json | 2 +- .../prairielearn/q10_integer-input/info.json | 4 ++-- .../prairielearn/q11_multi-part/info.json | 4 ++-- .../prairielearn/q12_longtext-input/info.json | 2 +- .../prairielearn/q13_file-editor-input/info.json | 8 ++++---- .../prairielearn/q14_string-input/info.json | 4 ++-- .../prairielearn/q15_matching/info.json | 4 ++-- .../prairielearn/q16_matrix-input/info.json | 4 ++-- .../prairielearn/q17_workspaces/info.json | 4 ++-- .../prairielearn/q18_integer-input/info.json | 4 ++-- 36 files changed, 75 insertions(+), 75 deletions(-) diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q01_multiple-choice/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q01_multiple-choice/info.json index 0ac2764..d10a968 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q01_multiple-choice/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q01_multiple-choice/info.json @@ -8,9 +8,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-19T07:09:41-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q02_number-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q02_number-input/info.json index 4d75ff1..cf27ef8 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q02_number-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q02_number-input/info.json @@ -9,9 +9,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q03_dropdown/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q03_dropdown/info.json index 721f185..178af6a 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q03_dropdown/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q03_dropdown/info.json @@ -8,9 +8,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2024-08-09T06:48:09-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q04_checkbox/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q04_checkbox/info.json index e27dbc8..f2a4747 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q04_checkbox/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q04_checkbox/info.json @@ -8,9 +8,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q05_multi-part_feedback/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q05_multi-part_feedback/info.json index 9d945d2..d6ce519 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q05_multi-part_feedback/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q05_multi-part_feedback/info.json @@ -4,15 +4,15 @@ "topic": "000.Template", "tags": [ "multi_part", - "number-input", "dropdown", + "number-input", "DEV" ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2024-06-20T16:22:06-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q06_number-input_feedback/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q06_number-input_feedback/info.json index eb67a6b..bf8b8d7 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q06_number-input_feedback/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q06_number-input_feedback/info.json @@ -16,9 +16,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2024-06-20T16:22:06-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07a_symbolic-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07a_symbolic-input/info.json index b61f3bb..cef51ab 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07a_symbolic-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07a_symbolic-input/info.json @@ -8,9 +8,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07b_symbolic-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07b_symbolic-input/info.json index 7110449..035a2e5 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07b_symbolic-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07b_symbolic-input/info.json @@ -8,9 +8,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q09_file-upload/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q09_file-upload/info.json index 0fd681c..e338da6 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q09_file-upload/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q09_file-upload/info.json @@ -8,8 +8,8 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "gradingMethod": "Manual", "comment": { "lastModified": "2023-06-14T19:23:57-0700" diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q10_integer-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q10_integer-input/info.json index 927a9f8..ddc20f3 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q10_integer-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q10_integer-input/info.json @@ -8,9 +8,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q11_multi-part/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q11_multi-part/info.json index a061dc0..17b167c 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q11_multi-part/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q11_multi-part/info.json @@ -10,9 +10,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q12_longtext-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q12_longtext-input/info.json index 7ac30dd..98b9e43 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q12_longtext-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q12_longtext-input/info.json @@ -8,8 +8,8 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { "lastModified": "2023-06-14T21:02:26-0700" } diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q13_file-editor-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q13_file-editor-input/info.json index 552fad7..c3a5e4d 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q13_file-editor-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q13_file-editor-input/info.json @@ -8,16 +8,16 @@ "DEV" ], "type": "v3", + "showCorrectAnswer": false, + "gradingMethod": "External", "singleVariant": true, + "partialCredit": true, "externalGradingOptions": { "enabled": true, "image": "prairielearn/grader-python", "entrypoint": "/python_autograder/run.sh" }, - "gradingMethod": "External", - "partialCredit": true, - "showCorrectAnswer": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q14_string-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q14_string-input/info.json index 334ad08..d0a2f4e 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q14_string-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q14_string-input/info.json @@ -8,9 +8,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-07-10T17:16:32-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q15_matching/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q15_matching/info.json index cf2c5bc..a9af407 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q15_matching/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q15_matching/info.json @@ -8,9 +8,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-07-19T19:01:42-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_matrix-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_matrix-input/info.json index 34e70d0..9e7d01a 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_matrix-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_matrix-input/info.json @@ -10,9 +10,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-11-21T21:38:37-0800" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file 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 4adde22..d3e0a7a 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 @@ -8,8 +8,6 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, - "showCorrectAnswer": false, "workspaceOptions": { "image": "prairielearn/workspace-xtermjs", "port": 8080, @@ -22,6 +20,8 @@ "newdir/file2_new.txt" ] }, + "singleVariant": false, + "showCorrectAnswer": false, "comment": { "lastModified": "2024-06-17T12:02:32-0700" } diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q18_integer-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q18_integer-input/info.json index 86836e1..07f1cd8 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q18_integer-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q18_integer-input/info.json @@ -9,9 +9,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2024-08-10T12:49:01-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q01_multiple-choice/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q01_multiple-choice/info.json index 132fd91..2913717 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q01_multiple-choice/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q01_multiple-choice/info.json @@ -7,9 +7,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-19T07:09:41-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q02_number-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q02_number-input/info.json index a2c0a9f..e42167a 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q02_number-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q02_number-input/info.json @@ -8,9 +8,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q03_dropdown/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q03_dropdown/info.json index ed5ee56..28972ff 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q03_dropdown/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q03_dropdown/info.json @@ -7,9 +7,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2024-08-09T06:48:09-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q04_checkbox/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q04_checkbox/info.json index 5924be0..df2fca5 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q04_checkbox/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q04_checkbox/info.json @@ -7,9 +7,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q05_multi-part_feedback/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q05_multi-part_feedback/info.json index 18532fe..f349405 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q05_multi-part_feedback/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q05_multi-part_feedback/info.json @@ -4,14 +4,14 @@ "topic": "000.Template", "tags": [ "multi_part", - "number-input", - "dropdown" + "dropdown", + "number-input" ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2024-06-20T16:22:06-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q06_number-input_feedback/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q06_number-input_feedback/info.json index a44b1ab..be0feea 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q06_number-input_feedback/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q06_number-input_feedback/info.json @@ -15,9 +15,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2024-06-20T16:22:06-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q07a_symbolic-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q07a_symbolic-input/info.json index 0068f47..d5abc63 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q07a_symbolic-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q07a_symbolic-input/info.json @@ -7,9 +7,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q07b_symbolic-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q07b_symbolic-input/info.json index 4b039cb..45904cc 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q07b_symbolic-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q07b_symbolic-input/info.json @@ -7,9 +7,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q09_file-upload/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q09_file-upload/info.json index decfbf3..d01b861 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q09_file-upload/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q09_file-upload/info.json @@ -7,8 +7,8 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "gradingMethod": "Manual", "comment": { "lastModified": "2023-06-14T19:23:57-0700" diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q10_integer-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q10_integer-input/info.json index 18d4c24..1a62e31 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q10_integer-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q10_integer-input/info.json @@ -7,9 +7,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q11_multi-part/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q11_multi-part/info.json index 5ed331c..8df2c87 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q11_multi-part/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q11_multi-part/info.json @@ -9,9 +9,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q12_longtext-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q12_longtext-input/info.json index 6f96296..1dd73c5 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q12_longtext-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q12_longtext-input/info.json @@ -7,8 +7,8 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { "lastModified": "2023-06-14T21:02:26-0700" } diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q13_file-editor-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q13_file-editor-input/info.json index 4879d4d..c0de9f0 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q13_file-editor-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q13_file-editor-input/info.json @@ -7,16 +7,16 @@ "nothing" ], "type": "v3", + "showCorrectAnswer": false, + "gradingMethod": "External", "singleVariant": true, + "partialCredit": true, "externalGradingOptions": { "enabled": true, "image": "prairielearn/grader-python", "entrypoint": "/python_autograder/run.sh" }, - "gradingMethod": "External", - "partialCredit": true, - "showCorrectAnswer": false, "comment": { - "lastModified": "2023-06-14T21:02:26-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q14_string-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q14_string-input/info.json index 000ea7b..ceafa09 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q14_string-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q14_string-input/info.json @@ -7,9 +7,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-07-10T17:16:32-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q15_matching/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q15_matching/info.json index 0d144d5..b867606 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q15_matching/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q15_matching/info.json @@ -7,9 +7,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-07-19T19:01:42-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_matrix-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q16_matrix-input/info.json index c227022..a4a98a0 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q16_matrix-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q16_matrix-input/info.json @@ -9,9 +9,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2023-11-21T21:38:37-0800" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/info.json index a055da9..c780b2f 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/info.json @@ -7,8 +7,6 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, - "showCorrectAnswer": false, "workspaceOptions": { "image": "prairielearn/workspace-xtermjs", "port": 8080, @@ -21,6 +19,8 @@ "newdir/file2_new.txt" ] }, + "singleVariant": false, + "showCorrectAnswer": false, "comment": { "lastModified": "2024-06-17T12:02:32-0700" } diff --git a/tests/test_question_templates/question_expected_outputs/prairielearn/q18_integer-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q18_integer-input/info.json index 9dc9696..28e508a 100644 --- a/tests/test_question_templates/question_expected_outputs/prairielearn/q18_integer-input/info.json +++ b/tests/test_question_templates/question_expected_outputs/prairielearn/q18_integer-input/info.json @@ -8,9 +8,9 @@ ], "type": "v3", "partialCredit": true, - "singleVariant": false, "showCorrectAnswer": false, + "singleVariant": false, "comment": { - "lastModified": "2024-08-10T12:49:01-0700" + "lastModified": "2024-08-29T11:22:51-0700" } } \ No newline at end of file