JsonPatchAutoTest¶
- class JsonPatchAutoTest[source]¶
JsonPatchAutoTest(setup_script: ‘Maybe[str]’ = Nothing, run_setup_script: ‘Maybe[str]’ = Nothing, has_new_fixtures: ‘Maybe[bool]’ = Nothing, enable_caching: ‘Maybe[bool]’ = Nothing, grade_calculation: ‘Maybe[str]’ = Nothing, results_always_visible: ‘Maybe[t.Optional[bool]]’ = Nothing, prefer_teacher_revision: ‘Maybe[t.Optional[bool]]’ = Nothing, fixtures: ‘Maybe[t.Sequence[FixtureLike]]’ = Nothing, overwrite_duplicate_fixtures: ‘bool’ = False)
- 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