okpy / ok-client

A Python client for the OK autograding system
https://okpy.org/
Apache License 2.0
57 stars 42 forks source link

Add multiline=True flag to unlockable cases #455

Closed rahularya50 closed 3 years ago

rahularya50 commented 3 years ago

Lets you add a multiline=True flag to cases. When this flag is present, the unlock protocol will always use the multiline protocol. This is needed when we have a question where multiline answers are possible, but the correct answer has just one line. Otherwise, students can look at the prompt to determine whether the answer has just one or multiple lines.

Test plan: pytest testForceMultipleLineMultipleFailsBeforeSuccess.