From 76871fa01259f76f3e535a66839506dab0b466a9 Mon Sep 17 00:00:00 2001 From: Eriq Augustine Date: Thu, 5 Sep 2024 12:01:11 -0700 Subject: [PATCH] Added CLI tests for lms.uploadscores. --- tests/cli/data/lms_upload_scores_base.txt | 2 ++ tests/cli/testdata/lms/lms_upload_scores_base.txt | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/cli/data/lms_upload_scores_base.txt create mode 100644 tests/cli/testdata/lms/lms_upload_scores_base.txt diff --git a/tests/cli/data/lms_upload_scores_base.txt b/tests/cli/data/lms_upload_scores_base.txt new file mode 100644 index 00000000..4c01e206 --- /dev/null +++ b/tests/cli/data/lms_upload_scores_base.txt @@ -0,0 +1,2 @@ +course-student@test.edulinq.org 10 +zzz@test.edulinq.org 10 diff --git a/tests/cli/testdata/lms/lms_upload_scores_base.txt b/tests/cli/testdata/lms/lms_upload_scores_base.txt new file mode 100644 index 00000000..50bab3e2 --- /dev/null +++ b/tests/cli/testdata/lms/lms_upload_scores_base.txt @@ -0,0 +1,15 @@ +{ + "cli": "autograder.cli.lms.upload-scores", + "arguments": [ + "--assignment-lms-id", "12345", + "__DATA_DIR__(lms_upload_scores_base.txt)" + ] +} +--- +Upload complete. + Grades Uploaded: 0 + Errors: 2 + Unrecognized Users: 1 + Row 1 -- zzz@test.edulinq.org + Users without LMS IDs: 1 + Row 0 -- course-student@test.edulinq.org