class StaffProgramAssociationFactory(APIFactory):
    beginDate = RandomDateAttribute()
    staffReference = factory.Dict(
        dict(staffUniqueId=StaffClient.shared_staff_id())
    )  # Prepopulated staff record
    programReference = factory.Dict(
        dict(
            educationOrganizationId=LocalEducationAgencyClient.
            shared_education_organization_id(),
            programName=ProgramClient.shared_program_name(),
            programTypeDescriptor=build_descriptor(
                'ProgramType', ProgramClient.shared_program_name()),
        ))  # Prepopulated program
    studentRecordAccess = True
Пример #2
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
Пример #3
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
Пример #4
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
Пример #5
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
Пример #6
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
Пример #7
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)
Пример #8
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"