Skip to content

Commit 0e42a9e

Browse files
committed
fix unit test
1 parent 3bb81f6 commit 0e42a9e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

tests/unit/github_action/test_github_action_service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def test_submission_built_with_correct_fields(self):
100100
user_id="gh-tok",
101101
assignment_id="app-tok",
102102
submission_files=submission_files,
103+
language=None,
104+
locale="en",
103105
)
104106

105107
def test_wraps_exception_on_pipeline_failure(self):

tests/unit/github_action/test_main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ def test_external_mode_passes_cloud_params_to_service(self):
694694
"default", # feedback_type
695695
"bob", # student_name
696696
None, # submission_language (not provided)
697+
"en", # locale (default)
697698
)
698699

699700
def test_external_mode_runs_autograder_after_cloud_pipeline(self):

0 commit comments

Comments
 (0)