We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d76560 + f1a5b8c commit 5599e7eCopy full SHA for 5599e7e
tests/test_check_function.py
@@ -500,3 +500,10 @@ def test_test_function_v2_no_sig():
500
s.check_function("numpy.arange", signature=False)
501
with pytest.raises(InstructorError):
502
s.check_function("numpy.arange")
503
+
504
505
+def test_function_call_in_return():
506
+ code = "def my_func(a): return my_func_in_return(b)"
507
+ sct = "Ex().check_function_def('my_func').check_body().check_function('my_func_in_return', signature=False)"
508
+ res = helper.run({"DC_CODE": code, "DC_SOLUTION": code, "DC_SCT": sct})
509
+ assert res["correct"]
0 commit comments