diff --git a/autograder/api/admin/updatecourse.py b/autograder/api/admin/updatecourse.py index c30e08ad..dd37d666 100644 --- a/autograder/api/admin/updatecourse.py +++ b/autograder/api/admin/updatecourse.py @@ -7,6 +7,7 @@ autograder.api.config.PARAM_USER_EMAIL, autograder.api.config.PARAM_USER_PASS, + autograder.api.config.PARAM_COURSE_SOURCE, autograder.api.config.APIParam('clear', 'Clear the course database before updating.', required = False, diff --git a/autograder/api/config.py b/autograder/api/config.py index ef3554ce..4b67fae6 100644 --- a/autograder/api/config.py +++ b/autograder/api/config.py @@ -195,6 +195,10 @@ def get_argument_parser( 'The ID of the course to make this request to.', config_key = 'course', required = True) +PARAM_COURSE_SOURCE = APIParam('source', + 'The source to use for the course.', + required = False) + PARAM_DRY_RUN = APIParam('dry-run', 'Do not commit/finalize the operation,' + ' just do all the steps and state what the result would look like.', diff --git a/tests/api/data/test_user_add_mod.json b/tests/api/data/test_user_add_mod.json index 861148ea..8dc1fdfd 100644 --- a/tests/api/data/test_user_add_mod.json +++ b/tests/api/data/test_user_add_mod.json @@ -26,7 +26,7 @@ }, { "email": "admin@test.com", - "pass": "cf9e95a6539a1246f7ac270a052dcf077ea1eccf2fd6607c243e795d3289940d", + "pass": "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918", "name": "", "role": "unknown", "lms-id": "" diff --git a/tests/api/data/test_user_change_pass_self.json b/tests/api/data/test_user_change_pass_self.json index 70e05536..47bf46a5 100644 --- a/tests/api/data/test_user_change_pass_self.json +++ b/tests/api/data/test_user_change_pass_self.json @@ -2,7 +2,7 @@ "endpoint": "user/change/pass", "arguments": { "target-email": "", - "new-pass": "new-pass" + "new-pass": "admin" }, "output": { "found-user": true