@@ -13,6 +13,38 @@ import {
13
13
export async function scoOrganizationManaginStudentsWithSiecle ( { databaseBuilder } ) {
14
14
await _createScoOrganization ( { databaseBuilder } ) ;
15
15
await _createScoCertificationCenter ( { databaseBuilder } ) ;
16
+
17
+ const sessionDate = new Date ( ) ;
18
+ await tooling . session . createPublishedScoSession ( {
19
+ databaseBuilder,
20
+ sessionId : 19999 ,
21
+ certificationCenterId : SCO_CERTIFICATION_CENTER_ID ,
22
+ organizationId : SCO_MANAGING_STUDENTS_ORGANIZATION_ID ,
23
+ accessCode : 'SCOS34' ,
24
+ address : '1 rue Certification sco' ,
25
+ certificationCenter : 'Centre de certification sco managing students' ,
26
+ date : sessionDate ,
27
+ description : 'une description' ,
28
+ examiner : 'Un super examinateur' ,
29
+ room : '42' ,
30
+ time : '12:00' ,
31
+ examinerGlobalComment : 'Session sans pb' ,
32
+ hasIncident : false ,
33
+ hasJoiningIssue : false ,
34
+ createdAt : sessionDate ,
35
+ finalizedAt : sessionDate ,
36
+ resultsSentToPrescriberAt : sessionDate ,
37
+ publishedAt : sessionDate ,
38
+ assignedCertificationOfficerId : null ,
39
+ juryComment : '' ,
40
+ juryCommentAuthorId : null ,
41
+ juryCommentedAt : sessionDate ,
42
+ configSession : {
43
+ learnersToRegisterCount : 8 ,
44
+ maxLevel : 3 ,
45
+ sessionDate,
46
+ } ,
47
+ } ) ;
16
48
}
17
49
18
50
async function _createScoOrganization ( { databaseBuilder } ) {
@@ -43,7 +75,6 @@ async function _createScoOrganization({ databaseBuilder }) {
43
75
learnerCount : 8 ,
44
76
} ,
45
77
tagIds : [ COLLEGE_TAG . id ] ,
46
- withOrganizationLearners : false ,
47
78
} ) ;
48
79
}
49
80
0 commit comments