test: propgate new `cypress_reset` options to admin view
This commit is contained in:
parent
0c3be4d383
commit
26de615f22
|
|
@ -153,11 +153,9 @@ def cypress_reset_view(request):
|
|||
if assignment_evaluation_scores:
|
||||
options["assignment_evaluation_scores"] = assignment_evaluation_scores
|
||||
|
||||
create_feedback_responses = (
|
||||
options["create_feedback_responses"] = (
|
||||
request.data.get("create_feedback_responses") == "true"
|
||||
)
|
||||
if create_feedback_responses:
|
||||
options["create_feedback_responses"] = create_feedback_responses
|
||||
|
||||
# edoniq test results
|
||||
edoniq_test_user_points = request.data.get("edoniq_test_user_points")
|
||||
|
|
@ -168,6 +166,14 @@ def cypress_reset_view(request):
|
|||
int(edoniq_test_max_points),
|
||||
)
|
||||
|
||||
options["create_course_completion_performance_criteria"] = (
|
||||
request.data.get("create_course_completion_performance_criteria") == "true"
|
||||
)
|
||||
|
||||
options["create_attendance_days"] = (
|
||||
request.data.get("create_attendance_days") == "true"
|
||||
)
|
||||
|
||||
call_command(
|
||||
"cypress_reset",
|
||||
**options,
|
||||
|
|
|
|||
|
|
@ -79,6 +79,18 @@
|
|||
</label>
|
||||
<div style="margin-bottom: 8px; padding: 4px; border-bottom: 1px lightblue solid"></div>
|
||||
|
||||
<label>
|
||||
<input type="checkbox" name="create_course_completion_performance_criteria" value="true">
|
||||
create_course_completion_performance_criteria
|
||||
</label>
|
||||
<div style="margin-bottom: 8px; padding: 4px; border-bottom: 1px lightblue solid"></div>
|
||||
|
||||
<label>
|
||||
<input type="checkbox" name="create_attendance_days" value="true">
|
||||
create_attendance_days
|
||||
</label>
|
||||
<div style="margin-bottom: 8px; padding: 4px; border-bottom: 1px lightblue solid"></div>
|
||||
|
||||
<button class="btn">Testdaten zurück setzen</button>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue