diff --git a/src/problem_bank_scripts/problem_bank_scripts.py b/src/problem_bank_scripts/problem_bank_scripts.py index ad3c3d1f..183c8cca 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) 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 c96c8563..74862ab1 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 97fab2fb..5cc32031 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 e59ef383..6f3a6906 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 ca5431fc..539c6312 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 fc9832c4..49b90471 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 b339a02f..fe7a647b 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 3817a218..4371f353 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 a927cf82..3602a795 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 971c2abe..3821e8b3 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 d0e336e1..a0d83e15 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 0dbe3972..5662ea6a 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 7ccfec0b..b9cb6630 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 6b0bb705..51a1644a 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 d89f88f0..d2297372 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 44f6d28b..d378e87f 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q01_multiple-choice/info.json index 0ac27642..d10a9687 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/q01_multiple-choice/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q01_multiple-choice/server.py index b639aff6..a8bd450d 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q02_number-input/info.json index 4d75ff18..cf27ef88 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/q02_number-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q02_number-input/server.py index 1ac8fab4..884335e2 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q03_dropdown/info.json index 721f1853..178af6a4 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/q03_dropdown/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q03_dropdown/server.py index d58dda4a..aed7d8a5 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q04_checkbox/info.json index e27dbc8a..f2a4747a 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/q04_checkbox/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q04_checkbox/server.py index 5f74c628..a3410bfe 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q05_multi-part_feedback/info.json index 9d945d2f..d6ce5196 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/q05_multi-part_feedback/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q05_multi-part_feedback/server.py index 270adc5f..14ccb153 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q06_number-input_feedback/info.json index eb67a6bf..bf8b8d70 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/q06_number-input_feedback/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q06_number-input_feedback/server.py index 40f94358..56d30ad9 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07a_symbolic-input/info.json index b61f3bb7..cef51ab0 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/q07a_symbolic-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07a_symbolic-input/server.py index daf3e4ec..9faf5562 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07b_symbolic-input/info.json index 7110449d..035a2e5e 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/q07b_symbolic-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q07b_symbolic-input/server.py index 93d6cfc6..c96d27d6 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/q09_file-upload/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q09_file-upload/info.json index 0fd681c3..e338da65 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 927a9f8a..ddc20f3a 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/q10_integer-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q10_integer-input/server.py index fa7e7c55..49d68a78 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q11_multi-part/info.json index a061dc00..17b167ca 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/q11_multi-part/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q11_multi-part/server.py index e98738a5..e8512d35 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/q12_longtext-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q12_longtext-input/info.json index 7ac30ddc..98b9e43b 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 552fad74..c3a5e4da 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/q13_file-editor-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q13_file-editor-input/server.py index af0133ac..ef273cf1 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q14_string-input/info.json index 334ad087..d0a2f4e1 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/q14_string-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q14_string-input/server.py index 0697f690..2948c75d 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q15_matching/info.json index cf2c5bc3..a9af4073 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/q15_matching/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q15_matching/server.py index 11263173..c085eaaa 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_matrix-input/info.json index 34e70d0a..9e7d01ac 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/q16_matrix-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q16_matrix-input/server.py index f25affca..7a2e87d9 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/q17_workspaces/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q17_workspaces/info.json index 4adde227..d3e0a7aa 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 86836e1f..07f1cd82 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-dev/q18_integer-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn-dev/q18_integer-input/server.py index 6974ec62..61ded335 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q01_multiple-choice/info.json index 132fd917..29137175 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/q01_multiple-choice/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q01_multiple-choice/server.py index b639aff6..a8bd450d 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q02_number-input/info.json index a2c0a9f5..e42167a2 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/q02_number-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q02_number-input/server.py index 1ac8fab4..884335e2 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q03_dropdown/info.json index ed5ee564..28972fff 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/q03_dropdown/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q03_dropdown/server.py index d58dda4a..aed7d8a5 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q04_checkbox/info.json index 5924be08..df2fca59 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/q04_checkbox/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q04_checkbox/server.py index 5f74c628..a3410bfe 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q05_multi-part_feedback/info.json index 18532fe8..f3494059 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/q05_multi-part_feedback/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q05_multi-part_feedback/server.py index 270adc5f..14ccb153 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q06_number-input_feedback/info.json index a44b1ab3..be0feeae 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/q06_number-input_feedback/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q06_number-input_feedback/server.py index 40f94358..56d30ad9 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q07a_symbolic-input/info.json index 0068f47f..d5abc63e 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/q07a_symbolic-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q07a_symbolic-input/server.py index daf3e4ec..9faf5562 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q07b_symbolic-input/info.json index 4b039cb8..45904ccc 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/q07b_symbolic-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q07b_symbolic-input/server.py index 93d6cfc6..c96d27d6 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/q09_file-upload/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q09_file-upload/info.json index decfbf35..d01b8610 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 18d4c242..1a62e31b 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/q10_integer-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q10_integer-input/server.py index fa7e7c55..49d68a78 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q11_multi-part/info.json index 5ed331c2..8df2c877 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/q11_multi-part/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q11_multi-part/server.py index e98738a5..e8512d35 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/q12_longtext-input/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q12_longtext-input/info.json index 6f962969..1dd73c53 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 4879d4d2..c0de9f01 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/q13_file-editor-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q13_file-editor-input/server.py index af0133ac..ef273cf1 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q14_string-input/info.json index 000ea7b0..ceafa097 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/q14_string-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q14_string-input/server.py index 0697f690..2948c75d 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q15_matching/info.json index 0d144d54..b8676062 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/q15_matching/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q15_matching/server.py index 11263173..c085eaaa 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/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q16_matrix-input/info.json index c2270220..a4a98a01 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/q16_matrix-input/server.py b/tests/test_question_templates/question_expected_outputs/prairielearn/q16_matrix-input/server.py index f25affca..7a2e87d9 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/q17_workspaces/info.json b/tests/test_question_templates/question_expected_outputs/prairielearn/q17_workspaces/info.json index a055da91..c780b2f0 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 9dc96968..28e508ab 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 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 6974ec62..61ded335 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 8c7460f0..73e099af 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 64715719..45020d7d 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 cf67496a..526b2777 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 ac7b565a..7deb7a23 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 eda7f34d..79fd1fa2 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 2253bb2e..27507377 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 4c989e7a..70728901 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 5d47e29f..206f73bb 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 c66bfc58..a8966674 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 4275acbf..db5cbee5 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 e06c2ba1..6f616104 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 a6e74e3b..2e3ea591 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 e8164365..b8f6d0a7 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 37073911..158cab52 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 b862387d..a125768f 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: |