Allow tests to give partial credit
Adds a new decorator, @partial_credit
, which allows setting the final score directly for cases where you want to give partial credit.
When using it, you don't need to use the @weight
decorator (you pass in the test weight to @partial_credit
).