$CG_INFOdefined. This variable contains a JSON object with the following keys:
deadlineThe deadline of this assignment.
lock_dateThe lock date of this assignment.
submitted_atThe date and time the student submitted their work.
result_idAn identifier unique to this AutoTest result. This value changes every time the AutoTest is run, even if it is run multiple times for the same submission of the same student.
student_idAn identifier unique to the student for which the AutoTest is run. This value stays constant between runs of different submissions by the same student.
cg_at_utilsmodule in Python. Import
from cg_at_utils import CG_INFOin your Python scripts and use them in your AutoTest category.
generate.pyto generate the inputs. It uses the
$CG_INFOto seed the random number generator. This has the consequence that the generated list of numbers stays the same between submissions of the same student. Upload the script created in step 1 as a fixture.
python3.7 generate.py | my_test_script.