@@ -108,16 +108,11 @@ def run_checks_internal(response: str, answer: str, params: dict) -> CheckResult
108
108
return general_feedback
109
109
response_ast = general_feedback .get_payload ("ast" , None )
110
110
111
- correct_feedback = random .choice (["Good Job!" , "Well Done!" , "Awesome" ])
112
-
113
111
# If a function test is desired, run tests to ensure that a particular function returns the
114
112
# correct values
115
113
check_func_name = params .get ('check_func' , None )
116
114
if check_func_name :
117
- result = check_func (response_ast , answer_ast , check_func_name )
118
- if result .passed ():
119
- result .add_message (correct_feedback )
120
- return result
115
+ return check_func (response_ast , answer_ast , check_func_name )
121
116
122
117
# Analyse the structure of the response, and ensure that it has the same function/class
123
118
# heirarchy as the correct answer.
@@ -140,9 +135,9 @@ def run_checks_internal(response: str, answer: str, params: dict) -> CheckResult
140
135
diff = output_diffs (res_msg , correct_output )
141
136
return CheckResult (False ).add_message (markdown_format (error_feedback + diff ))
142
137
else :
143
- return CheckResult (True ). add_message ( correct_feedback )
138
+ return CheckResult (True )
144
139
elif check_each_letter (response , answer ):
145
- return CheckResult (True ). add_message ( correct_feedback )
140
+ return CheckResult (True )
146
141
147
142
# Check global variables if a check list was given
148
143
check_list = params .get ('global_variable_check_list' , {})
@@ -157,7 +152,7 @@ def run_checks_internal(response: str, answer: str, params: dict) -> CheckResult
157
152
if not check_result .passed ():
158
153
return CheckResult (False ).add_message (markdown_format (check_result .message ()))
159
154
else :
160
- return CheckResult (True ). add_message ( correct_feedback )
155
+ return CheckResult (True )
161
156
162
157
# If none of the tests were run, return an indeterminate result and defer to AI
163
158
return CheckResult (False ).add_payload ("ai" , True )
0 commit comments