JsonPatchAutoTest

class JsonPatchAutoTest[source]
setup_script: Just[str] | _Nothing[str] = Nothing

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

run_setup_script: Just[str] | _Nothing[str] = Nothing

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

has_new_fixtures: Just[bool] | _Nothing[bool] = Nothing

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

enable_caching: Just[bool] | _Nothing[bool] = Nothing

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

grade_calculation: Just[str] | _Nothing[str] = Nothing

The way to do grade calculation for this AutoTest.

results_always_visible: Just[bool | None] | _Nothing[bool | None] = Nothing

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

prefer_teacher_revision: Just[bool | None] | _Nothing[bool | None] = Nothing

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

fixtures: 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.