Agentic AI - module 2 graded Lab - error

Hello,

After completing all the tasks of the M2 Graded Lab, with unittests printing “All tests passed!”, I noticed that I still didn’t get the full marks.

As you can see in the screenshot bellow, my function revise_draft did output “All tests passed!” after runing the unittests. However when grading, it says that my code didn’t pass all the tests. I decided to add some try-catch hoping that the explanation of the error would contain my print, unfortunately it doesn’t. I can not access the tests created and for that reason, I can’t debug the reason of my code not working.

Best regards,
Alexandre

Two thoughts:

  • The grader always tests your code using entirely different test cases than the ones built into the notebook. So your code must work with any set of data. Passing the tests in the notebook does not prove your code is perfect.
  • Did you save your notebook before you submitted it for grading? The auto-save function of the notebooks doesn’t activate very quickly. Always save (File->Save and Checkpoint) before you submit for grading.

Hi TMosh,

The issue was indeed that the notebook didn’t save my changes before I submitted my code for grading. Thank you very much for the quick feedback !

Have a great day,
Alexandre