class RestraintEventFactory(APIFactory):
    restraintEventIdentifier = UniqueIdAttribute(num_chars=20)
    schoolReference = factory.Dict(
        dict(schoolId=SchoolClient.shared_elementary_school_id()))
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id()))
    eventDate = formatted_date(2, 14)
class StudentAssessmentFactory(APIFactory):
    studentAssessmentIdentifier = UniqueIdAttribute()
    studentReference = factory.Dict(dict(studentUniqueId=StudentClient.shared_student_id()))  # Prepopulated student
    assessmentReference = factory.Dict(
        dict(
            assessmentIdentifier=None,
            namespace='uri://ed-fi.org/Assessment/Assessment.xml'
        )
    )
    administrationDate = RandomDateAttribute()  # Along with studentReference and assessmentReference, this is the PK
    administrationEnvironmentDescriptor = build_descriptor('AdministrationEnvironment', 'Testing Center')
    administrationLanguageDescriptor = build_descriptor('Language', 'eng')
    serialNumber = "0"
    whenAssessedGradeLevelDescriptor = build_descriptor('GradeLevel', 'Sixth grade')
    performanceLevels = factory.List([
        factory.Dict(
            dict(
                assessmentReportingMethodDescriptor=build_descriptor('AssessmentReportingMethod', 'Scale score'),
                performanceLevelDescriptor=build_descriptor('PerformanceLevel', 'Fail'),
                performanceLevelMet=True,
            )
        ),
    ])
    scoreResults = factory.List([
        factory.Dict(
            dict(
                assessmentReportingMethodDescriptor=build_descriptor('AssessmentReportingMethod', 'Scale score'),
                result="25",
                resultDatatypeTypeDescriptor=build_descriptor('ResultDatatypeType', 'Integer'),
            )
        )
    ])
class PostSecondaryEventFactory(APIFactory):
    eventDate = RandomDateAttribute()
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id()))
    postSecondaryEventCategoryDescriptor = build_descriptor(
        'PostSecondaryEventCategory', 'College Acceptance')
    postSecondaryInstitutionReference = factory.Dict(
        dict(postSecondaryInstitutionId=None))  # Must be entered by user
示例#4
0
class StudentEducationOrganizationResponsibilityAssociationFactory(APIFactory):
    educationOrganizationReference = factory.Dict(
        dict(educationOrganizationId=SchoolClient.shared_elementary_school_id(
        )))  # Prepopulated school
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    beginDate = RandomDateAttribute()
    responsibilityDescriptor = build_descriptor('Responsibility', 'Graduation')
    endDate = formatted_date(8, 8)
示例#5
0
class StudentInterventionAssociationFactory(APIFactory):
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    interventionReference = factory.Dict(
        dict(
            educationOrganizationId=LocalEducationAgencyClient.
            shared_education_organization_id(),
            interventionIdentificationCode=None  # Must be entered by user
        ))
    dosage = 1
示例#6
0
class StudentInterventionAttendanceEventFactory(APIFactory):
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    interventionReference = factory.Dict(
        dict(
            educationOrganizationId=LocalEducationAgencyClient.
            shared_education_organization_id(),
            interventionIdentificationCode=None  # Must be entered by user
        ))
    eventDate = RandomDateAttribute()
    attendanceEventCategoryDescriptor = build_descriptor(
        'AttendanceEventCategory', 'In Attendance')
    interventionDuration = 2
示例#7
0
class StudentLearningObjectiveFactory(APIFactory):
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    gradingPeriodReference = factory.Dict(
        dict(
            gradingPeriodDescriptor=build_descriptor("GradingPeriod",
                                                     "First Six Weeks"),
            periodSequence=None,  # Must be entered by user
            schoolId=SchoolClient.shared_elementary_school_id(),
            schoolYear=2014))
    learningObjectiveReference = factory.Dict(
        dict(learningObjectiveId=None, namespace='uri://ed-fi.org'))
    competencyLevelDescriptor = build_descriptor('CompetencyLevel',
                                                 'Proficient')
class ReportCardFactory(APIFactory):
    educationOrganizationReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id()))
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    gradingPeriodReference = factory.Dict(
        dict(
            periodSequence=None,  # Must be created
            schoolId=SchoolClient.shared_elementary_school_id(),
            schoolYear=2014,
            gradingPeriodDescriptor=build_descriptor("GradingPeriod",
                                                     "First Six Weeks"),
        ))
    gpaGivenGradingPeriod = 3.14
示例#9
0
class StudentSchoolFoodServiceProgramAssociationFactory(APIFactory):
    beginDate = RandomDateAttribute()
    educationOrganizationReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id()))  # Prepopulated ed org
    programReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id(),
             programTypeDescriptor=build_descriptor(
                 'ProgramType', ProgramClient.shared_program_name()),
             programName=ProgramClient.shared_program_name())
    )  # Prepopulated program
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    directCertification = True
示例#10
0
class StudentNeglectedOrDelinquentProgramAssociationFactory(APIFactory):
    beginDate = RandomDateAttribute()
    educationOrganizationReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id()))  # Prepopulated ed org
    programReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id(),
             programTypeDescriptor=build_descriptor(
                 'ProgramType', ProgramClient.shared_program_name()),
             programName=ProgramClient.shared_program_name())
    )  # Prepopulated program
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    servedOutsideOfRegularSession = False
示例#11
0
class StudentLanguageInstructionProgramAssociationFactory(APIFactory):
    beginDate = RandomDateAttribute()
    educationOrganizationReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id()))  # Prepopulated ed org
    programReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id(),
             programTypeDescriptor=build_descriptor(
                 'ProgramType', ProgramClient.shared_program_name()),
             programName=ProgramClient.shared_program_name())
    )  # Prepopulated program
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    englishLearnerParticipation = False
示例#12
0
class StudentHomelessProgramAssociationFactory(APIFactory):
    beginDate = RandomDateAttribute()
    educationOrganizationReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id()))  # Prepopulated ed org
    programReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id(),
             programTypeDescriptor=build_descriptor(
                 'ProgramType', ProgramClient.shared_program_name()),
             programName=ProgramClient.shared_program_name())
    )  # Prepopulated program
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    awaitingFosterCare = True
示例#13
0
class StudentCTEProgramAssociationFactory(APIFactory):
    educationOrganizationReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id()))  # Prepopulated ed org
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    programReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id(),
             programTypeDescriptor=build_descriptor(
                 'ProgramType', ProgramClient.shared_program_name()),
             programName=ProgramClient.shared_program_name())
    )  # Prepopulated program
    beginDate = RandomDateAttribute()
    nonTraditionalGenderStatus = True
示例#14
0
class StudentMigrantEducationProgramAssociationFactory(APIFactory):
    beginDate = RandomDateAttribute()
    educationOrganizationReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id()))  # Prepopulated ed org
    programReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id(),
             programTypeDescriptor=build_descriptor(
                 'ProgramType', ProgramClient.shared_program_name()),
             programName=ProgramClient.shared_program_name())
    )  # Prepopulated program
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    priorityForServices = False
    lastQualifyingMove = formatted_date(6, 6)
示例#15
0
class StudentProgramAttendanceEventFactory(APIFactory):
    eventDate = RandomDateAttribute()
    educationOrganizationReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id()))  # Prepopulated ed org
    programReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id(),
             programTypeDescriptor=build_descriptor(
                 'ProgramType', ProgramClient.shared_program_name()),
             programName=ProgramClient.shared_program_name())
    )  # Prepopulated program
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    attendanceEventCategoryDescriptor = build_descriptor(
        'AttendanceEventCategory', 'Excused Absence')
    attendanceEventReason = "Sick"
示例#16
0
class StudentCompetencyObjectiveFactory(APIFactory):
    studentReference = factory.Dict(
        dict(studentUniqueId=StudentClient.shared_student_id())
    )  # Prepopulated student
    gradingPeriodReference = factory.Dict(
        dict(
            schoolId=SchoolClient.shared_elementary_school_id(
            ),  # Prepopulated school
            schoolYear=2014,  # Prepopulated schoolYear
            periodSequence=None,  # Must be entered by the user
            gradingPeriodDescriptor=build_descriptor("GradingPeriod",
                                                     "First Six Weeks")))
    objectiveCompetencyObjectiveReference = factory.Dict(
        dict(
            educationOrganizationId=LocalEducationAgencyClient.
            shared_education_organization_id(),  # Prepopulated ed org
            objective=None,  # Must be entered by the user
            objectiveGradeLevelDescriptor=build_descriptor(
                'GradeLevel', 'Tenth grade')))
    competencyLevelDescriptor = build_descriptor('CompetencyLevel',
                                                 'Proficient')