33
33
"title_en" : "Process-oriented information systems" ,
34
34
"type" : "Vorlesung" ,
35
35
"isexam" : False ,
36
- "courses" : [
37
- {"cprid" : "BA-Inf" , "scale" : "GRADE_PARTICIPATION" },
38
- {"cprid" : "MA-Inf" , "scale" : "GRADE_PARTICIPATION" },
39
- ],
36
+ "courses" : [],
40
37
"relatedevents" : {"gguid" : "0x6" },
41
38
"appointments" : [{"begin" : "15.04.2024 10:15" , "end" : "15.07.2024 11:45" }],
42
39
"lecturers" : [{"gguid" : "0x3" }],
50
47
"type" : "Klausur" ,
51
48
"isexam" : True ,
52
49
"courses" : [
53
- {"cprid" : "BA-Inf" , "scale" : "" },
54
- {"cprid" : "MA-Inf" , "scale" : "" },
50
+ {"cprid" : "BA-Inf" , "scale" : "GRADE_PARTICIPATION " },
51
+ {"cprid" : "MA-Inf" , "scale" : "GRADE_PARTICIPATION " },
55
52
],
56
53
"relatedevents" : {"gguid" : "0x5" },
57
54
"appointments" : [{"begin" : "29.07.2024 10:15" , "end" : "29.07.2024 11:45" }],
@@ -182,7 +179,7 @@ def test_import_courses(self):
182
179
self .assertEqual (course .name_en , EXAMPLE_DATA ["events" ][0 ]["title_en" ])
183
180
self .assertEqual (course .type .name_de , EXAMPLE_DATA ["events" ][0 ]["type" ])
184
181
self .assertSetEqual (
185
- {d .name_de for d in course .programs .all ()}, {d ["cprid" ] for d in EXAMPLE_DATA ["events" ][0 ]["courses" ]}
182
+ {d .name_de for d in course .programs .all ()}, {d ["cprid" ] for d in EXAMPLE_DATA ["events" ][1 ]["courses" ]}
186
183
)
187
184
self .assertSetEqual (
188
185
set (course .responsibles .values_list ("email" , flat = True )),
@@ -200,7 +197,6 @@ def test_import_courses(self):
200
197
set (main_evaluation .participants .values_list ("email" , flat = True )),
201
198
202
199
)
203
- self .assertTrue (main_evaluation .wait_for_grade_upload_before_publishing )
204
200
205
201
self .assertEqual (Contribution .objects .filter (evaluation = main_evaluation ).count (), 2 )
206
202
self .assertSetEqual (
@@ -223,7 +219,7 @@ def test_import_courses(self):
223
219
set (exam_evaluation .participants .values_list ("email" , flat = True )),
224
220
225
221
)
226
- self .assertFalse (exam_evaluation .wait_for_grade_upload_before_publishing )
222
+ self .assertTrue (exam_evaluation .wait_for_grade_upload_before_publishing )
227
223
228
224
self .assertEqual (Contribution .objects .filter (evaluation = exam_evaluation ).count (), 4 )
229
225
self .assertSetEqual (
0 commit comments