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'),
            )
        )
    ])
Пример #2
0
class AccountabilityRatingFactory(APIFactory):
    ratingTitle = UniqueIdAttribute()
    educationOrganizationReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id()))
    schoolYearTypeReference = factory.Dict(dict(schoolYear=2014))
    rating = "Recognized"
Пример #3
0
class DisciplineActionFactory(APIFactory):
    disciplineActionIdentifier = UniqueIdAttribute(num_chars=20)
    disciplineDate = formatted_date(9, 20)
    disciplines = factory.List([
        factory.Dict(
            dict(disciplineDescriptor=build_descriptor(
                'Discipline', 'Out of School Suspension'))),
    ])
    studentReference = factory.Dict(dict(
        studentUniqueId=111111))  # Default value for scenarios, but not in DB
    actualDisciplineActionLength = 2
    studentDisciplineIncidentAssociations = factory.List([
        factory.Dict(
            dict(
                studentDisciplineIncidentAssociationReference=factory.Dict(
                    dict(
                        incidentIdentifier=None,  # Must be entered by user
                        schoolId=SchoolClient.shared_elementary_school_id(
                        ),  # Prepopulated school
                        studentUniqueId=
                        111111,  # Default value for scenarios, but not in DB
                    )), ), ),
    ])
    responsibilitySchoolReference = factory.Dict(
        dict(schoolId=SchoolClient.shared_elementary_school_id())
    )  # Prepopulated school
class CompetencyObjectiveFactory(APIFactory):
    educationOrganizationReference = factory.Dict(
        dict(educationOrganizationId=LocalEducationAgencyClient.
             shared_education_organization_id()))
    objective = UniqueIdAttribute(num_chars=60)
    objectiveGradeLevelDescriptor = build_descriptor('GradeLevel',
                                                     'Tenth grade')
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 CommunityProviderLicenseFactory(APIFactory):
    licenseIdentifier = UniqueIdAttribute(num_chars=20)
    communityProviderReference = factory.Dict(
        dict(communityProviderId=None))  # Need to create as dependency
    licensingOrganization = "USDOE"
    licenseTypeDescriptor = build_descriptor('LicenseType',
                                             'School Age Program')
    licenseEffectiveDate = formatted_date(11, 24)
class ObjectiveAssessmentFactory(APIFactory):
    assessmentReference = factory.Dict(
        dict(
            assessmentIdentifier=None,
            namespace='uri://ed-fi.org/Assessment/Assessment.xml'
        )
    )
    identificationCode = UniqueIdAttribute()
    maxRawScore = 8
class AssessmentFactory(APIFactory):
    assessmentIdentifier = UniqueIdAttribute()
    academicSubjects = factory.List([
        factory.Dict(
            dict(
                academicSubjectDescriptor=build_descriptor('AcademicSubject', 'English')
            )
        )
    ])
    assessedGradeLevels = factory.List([
        factory.Dict(
            dict(
                gradeLevelDescriptor=build_descriptor('GradeLevel', 'Twelfth grade')
            )
        )
    ])
    assessmentTitle = RandomSuffixAttribute("AP - English")
    assessmentVersion = 2017
    maxRawScore = 25
    namespace = 'uri://ed-fi.org/Assessment/Assessment.xml'
    identificationCodes = factory.List([
        factory.Dict(
            dict(
                assessmentIdentificationSystemDescriptor=build_descriptor(
                    'AssessmentIdentificationSystem', 'Test Contractor'),
                identificationCode="AP English",
            )
        ),
    ])
    performanceLevels = factory.List([
        factory.Dict(
            dict(
                assessmentReportingMethodDescriptor=build_descriptor('AssessmentReportingMethod', 'Scale score'),
                performanceLevelDescriptor=build_descriptor('PerformanceLevel', 'Pass'),
                maximumScore="25",
                minimumScore="12",
            )
        ),
        factory.Dict(
            dict(
                assessmentReportingMethodDescriptor=build_descriptor('AssessmentReportingMethod', 'Scale score'),
                performanceLevelDescriptor=build_descriptor('PerformanceLevel', 'Fail'),
                maximumScore="11",
                minimumScore="0",
            )
        ),
    ])
    scores = factory.List([
        factory.Dict(
            dict(
                assessmentReportingMethodDescriptor=build_descriptor('AssessmentReportingMethod', 'Scale score'),
                resultDatatypeType="Integer",
                maximumScore="25",
                minimumScore="0",
            )
        ),
    ])
class GradebookEntryFactory(APIFactory):
    gradebookEntryTitle = UniqueIdAttribute()
    dateAssigned = formatted_date(2, 2)
    sectionReference = factory.Dict(
        dict(
            localCourseCode="ELA-01",
            schoolId=SchoolClient.shared_elementary_school_id(),
            schoolYear=current_year(),
            sectionIdentifier="ELA012017RM555",
            sessionName="2016-2017 Fall Semester",
        ))
class AssessmentItemFactory(APIFactory):
    assessmentReference = factory.Dict(
        dict(
            assessmentIdentifier=None,
            namespace='uri://ed-fi.org/Assessment/Assessment.xml'
        )
    )
    identificationCode = UniqueIdAttribute()
    assessmentItemCategoryDescriptor = build_descriptor('AssessmentItemCategory', 'List Question')
    correctResponse = 'A'
    maxRawScore = 1
Пример #11
0
class InterventionStudyFactory(APIFactory):
    interventionStudyIdentificationCode = UniqueIdAttribute(num_chars=60)
    educationOrganizationReference = factory.Dict(dict(educationOrganizationId=LocalEducationAgencyClient.shared_education_organization_id()))
    interventionPrescriptionReference = factory.Dict(
        dict(
            educationOrganizationId=LocalEducationAgencyClient.shared_education_organization_id(),
            interventionPrescriptionIdentificationCode=None,  # Must be created by client
        )
    )
    deliveryMethodDescriptor = build_descriptor('DeliveryMethod', 'Whole Class')
    interventionClassDescriptor = build_descriptor('InterventionClass', 'Practice')
    participants = 25
Пример #12
0
class AccountFactory(APIFactory):
    accountIdentifier = UniqueIdAttribute()
    educationOrganizationReference = factory.Dict(dict(educationOrganizationId=LocalEducationAgencyClient.shared_education_organization_id()))
    accountCodes = factory.List([
        factory.Dict({  # Values for a prepopulated account, but don't rely on this existing
            'accountCodeReference': dict(
                accountCodeNumber="1000",
                educationOrganizationId=LocalEducationAgencyClient.shared_education_organization_id(),
                accountClassificationDescriptor=build_descriptor('AccountClassification', 'Function'),
                fiscalYear=current_year(),
            )
        }),
    ])
    fiscalYear = current_year()
class LearningStandardFactory(APIFactory):
    learningStandardId = UniqueIdAttribute()
    academicSubjects = factory.List([
        factory.Dict(
            dict(academicSubjectDescriptor=build_descriptor('AcademicSubject', 'Mathematics'))
        )
    ])
    courseTitle = "Advanced Math for students v4.4"
    description = "Unit 1 Advanced Math for students v4.4"
    namespace = 'uri://ed-fi.org/LearningStandard/LearningStandard.xml'
    gradeLevels = factory.List([
        factory.Dict(
            dict(gradeLevelDescriptor=build_descriptor('GradeLevel', 'Tenth grade'))
        ),
    ])
class CredentialFactory(APIFactory):
    credentialIdentifier = UniqueIdAttribute(num_chars=60)
    stateOfIssueStateAbbreviationDescriptor = build_descriptor(
        'StateAbbreviation', 'TX')
    credentialFieldDescriptor = build_descriptor('CredentialField',
                                                 'Mathematics')
    credentialTypeDescriptor = build_descriptor('CredentialType',
                                                'Registration')
    teachingCredentialDescriptor = build_descriptor('TeachingCredential',
                                                    'Paraprofessional')
    issuanceDate = formatted_date(7, 4)
    gradeLevels = factory.List([
        factory.Dict(
            dict(gradeLevelDescriptor=build_descriptor('GradeLevel',
                                                       'Sixth grade')), ),
    ])
    namespace = "uri://ed-fi.org"
Пример #15
0
class DisciplineIncidentFactory(APIFactory):
    incidentDate = formatted_date(9, 25)
    incidentIdentifier = UniqueIdAttribute(num_chars=20)
    schoolReference = factory.Dict(
        dict(schoolId=SchoolClient.shared_elementary_school_id())
    )  # Prepopulated school
    staffReference = factory.Dict(
        dict(staffUniqueId=None))  # Must be entered by user
    behaviors = factory.List([
        factory.Dict(
            dict(behaviorDescriptor=build_descriptor(
                'Behavior', 'School Code of Conduct')), )
    ])
    incidentLocationDescriptor = build_descriptor('IncidentLocation',
                                                  'School Bus')
    reporterDescriptionDescriptor = build_descriptor('ReporterDescription',
                                                     'Staff')
    reporterName = "Villa, Mike"
class LearningObjectiveFactory(APIFactory):
    academicSubjects = factory.List([
        factory.Dict(
            dict(
                academicSubjectDescriptor=build_descriptor('AcademicSubject', 'Mathematics'),
                namespace='uri://ed-fi.org/'
            )
        )
    ])
    objective = RandomSuffixAttribute("Number Operations and Concepts")
    gradeLevels = factory.List([
        factory.Dict(
            dict(
                gradeLevelDescriptor=build_descriptor('GradeLevel', 'Sixth grade')
            )
        )
    ])
    description = (
        "The student will demonstrate the ability to utilize numbers to perform"
        " operations with complex concepts."
    )
    learningObjectiveId = UniqueIdAttribute()
    namespace = 'uri://ed-fi.org'
Пример #17
0
class InterventionFactory(APIFactory):
    interventionIdentificationCode = UniqueIdAttribute(num_chars=60)
    educationOrganizationReference = factory.Dict(dict(educationOrganizationId=LocalEducationAgencyClient.shared_education_organization_id()))
    interventionPrescriptions = factory.List([
        factory.Dict(
            dict(
                interventionPrescriptionReference=factory.Dict(
                    dict(
                        interventionPrescriptionIdentificationCode=None,  # Must be created by client
                        educationOrganizationId=LocalEducationAgencyClient.shared_education_organization_id(),
                    ),
                ),
            )
        ),
    ])
    deliveryMethodDescriptor = build_descriptor('DeliveryMethod', 'Whole Class')
    interventionClassDescriptor = build_descriptor('InterventionClass', 'Practice')
    appropriateGradeLevels = factory.List([
        factory.Dict(
            dict(gradeLevelDescriptor=build_descriptor('GradeLevel', 'Ninth grade'))
        )
    ])
    beginDate = formatted_date(8, 23)
Пример #18
0
class EducationContentFactory(APIFactory):
    contentIdentifier = UniqueIdAttribute(num_chars=60)
    description = "A learning resource for all grade levels"
    namespace = "uri://ed-fi.org"
Пример #19
0
class AccountCodeFactory(APIFactory):
    accountCodeNumber = UniqueIdAttribute()
    educationOrganizationReference = factory.Dict(dict(educationOrganizationId=LocalEducationAgencyClient.shared_education_organization_id()))
    accountClassificationDescriptor = build_descriptor('AccountClassification', 'Function')
    fiscalYear = current_year()
    accountCodeDescription = "Instruction"