ScoringMixin

class grade.mixins.ScoringMixin

Provides scoring utility functions.

static find(pattern, recursive=True) → List[str]

Returns all files matching pattern, case insensitive.

getTest() → Callable

Returns the topmost test method on the stack.

property leaderboard

Returns a dictionary with all leaderboard attributes.

property leaderboardOrder

Return the leaderboard order attribute.

property leaderboardTitle

Returns the leaderboard title attribute for the test.

static require(*files) → None

Asserts all provided files exist.

property score

Returns the current score for the test.

setattr(attribute, value) → None

Updates the dictionary of the most recently called test method.

property visibility

Returns visibility of the test.

This controls whether or not students should see the failing testcase.

property weight

Returns the weight of the test.