Reinitialize test database
Implement a CLI command, which truncates all current data (from the database and from the disk), and reinitializes it with preset data for development and testing purposes.
The following data should be seeded to the system:
- A single, active semester;
- Users: student, instructors and administrators (should be the users already used by the mock login interface);
- Courses and groups (each user should be assigned at least one);
- Tasks (their deadline should be dynamically computed from the current time when the CLI command is executed);
- Some existing submissions;
- Exam question sets, tests and test instances (the deadline should be dynamic again).
Edited by Máté Cserép