JsonPatchAutoTest#

class JsonPatchAutoTest[source]#
setup_script: Union[Just[str], _Nothing[str]] = Nothing#

The new setup script (per student) of the auto test.

run_setup_script: Union[Just[str], _Nothing[str]] = Nothing#

The new run setup script (global) of the auto test.

has_new_fixtures: Union[Just[bool], _Nothing[bool]] = Nothing#

If true all other files in the request will be used as new fixtures

enable_caching: Union[Just[bool], _Nothing[bool]] = Nothing#

If true the output of the global setup script will be cached

grade_calculation: Union[Just[str], _Nothing[str]] = Nothing#

The way to do grade calculation for this AutoTest.

results_always_visible: Union[Just[Optional[bool]], _Nothing[Optional[bool]]] = Nothing#

Should results be visible for students before the assignment is set to “done”?

prefer_teacher_revision: Union[Just[Optional[bool]], _Nothing[Optional[bool]]] = Nothing#

If true we will use the teacher revision if available when running tests.

fixtures: Union[Just[Sequence[FixtureLike]], _Nothing[Sequence[FixtureLike]]] = Nothing#

A list of old fixtures you want to keep

overwrite_duplicate_fixtures: bool = False#

If true existing fixtures with the same name as one of the new fixtures are deleted and no renaming is performed.