Purdue-EBEC / generic-grader

A collection of parameterizable tests for automatic grading.
GNU General Public License v3.0
0 stars 1 forks source link

How to patch a class / class methods #130

Open jscarfo11 opened 3 weeks ago

jscarfo11 commented 3 weeks ago

Similar to how we patch some function when testing student output (to remove some random features), we want to be able to patch certain class methods.

One possible way of doing this would be to create a new class that sub-classes their class, and overwrite the expected methods.