def run_transcript_scenarios(self): self.run_scenario('finalNumericGradeEarned', 87) self.run_scenario('finalNumericGradeEarned', 100, schoolId=SchoolClient.shared_high_school_id(), courseReference__courseCode='ALG-2', finalLetterGradeEarned='A', finalNumericGradEarned=98)
def run_association_scenarios(self): self.run_scenario( 'classroomPositionDescriptor', build_descriptor('ClassroomPosition', 'Assistant Teacher')) self.run_scenario('endDate', formatted_date(9, 1), schoolId=SchoolClient.shared_high_school_id(), courseCode="ALG-2")
def run_section_scenarios(self): self.run_scenario('availableCredits', 2) self.run_scenario( 'availableCredits', 3, schoolId=SchoolClient.shared_high_school_id(), sectionIdentifier=RandomSuffixAttribute("ALG12017RM901"), courseCode="ALG-2")
def run_grade_scenarios(self): self.run_scenario('numericGradeEarned', 83) self.run_scenario('numericGradeEarned', 97, schoolId=SchoolClient.shared_high_school_id(), courseCode='ALG-2', letterGradeEarned='A', numericGradeEarned=94)
def run_association_scenarios(self): self.run_scenario('academicSubjects', [{ 'academicSubjectDescriptor': build_descriptor('AcademicSubject', 'Social Studies') }]) self.run_scenario('gradeLevels', [{ 'gradeLevelDescriptor': build_descriptor('GradeLevel', 'Tenth grade') }], schoolId=SchoolClient.shared_high_school_id())
def run_calendar_scenarios(self): self.run_scenario('calendarTypeDescriptor', build_descriptor('CalendarType', 'Student Specific')) self.run_scenario( 'gradeLevels', build_descriptor_dicts('GradeLevel', ['Ninth grade', 'Tenth grade']), calendarCode=RandomSuffixAttribute("IEP001"), schoolReference__schoolId=SchoolClient.shared_high_school_id(), gradeLevels=build_descriptor_dicts('GradeLevel', ['Ninth grade']))
def run_class_period_scenarios(self): self.run_scenario( 'classPeriodName', RandomSuffixAttribute("Class Period 01", suffix_length=10)) self.run_scenario( 'classPeriodName', RandomSuffixAttribute("Class Period 01", suffix_length=10), schoolReference__schoolId=SchoolClient.shared_high_school_id(), meetingTimes=[{ "endTime": "09:25:00", "startTime": "08:35:00" }])
def run_discipline_incident_scenarios(self): self.run_scenario('reporterName', "Villa, Mark") self.run_scenario( 'incidentLocationDescriptor', build_descriptor('IncidentLocation', 'Classroom'), schoolId=SchoolClient.shared_high_school_id( ), # Prepopulated school behaviors__0__behaviorDescriptor=build_descriptor( 'Behavior', 'State Offense'), incidentLocationDescriptor=build_descriptor( 'IncidentLocation', 'Library/media center'), reporterName="Moran, Patricia")
def run_course_offering_scenarios(self): high_school_id = SchoolClient.shared_high_school_id() self.run_scenario('localCourseTitle', "English Language Arts, Grade 2") self.run_scenario( 'localCourseTitle', 'Algebra II', schoolId=high_school_id, localCourseCode=RandomSuffixAttribute('ALG-2'), localCourseTitle="Algebra 02 GBHS", courseReference__courseCode='ALG-2', courseReference__educationOrganizationId=high_school_id, schoolReference__schoolId=high_school_id, )
def run_calendar_scenarios(self): self.run_scenario( 'calendarEvents', build_descriptor_dicts( 'CalendarEvent', ['Instructional day', 'Student late arrival/early dismissal'])) self.run_scenario('calendarEvents', build_descriptor_dicts('CalendarEvent', ['Instructional day']), calendarEvents=build_descriptor_dicts( 'CalendarEvent', ['Holiday']), schoolId=SchoolClient.shared_high_school_id(), calendarCode=RandomSuffixAttribute("IEP001"))
def run_discipline_action_scenarios(self): self.run_scenario('disciplines', [{ 'disciplineDescriptor': build_descriptor('Discipline', 'In School Suspension') }]) self.run_scenario( 'disciplines', [{ 'disciplineDescriptor': build_descriptor('Discipline', 'Community Service') }], schoolId=SchoolClient.shared_high_school_id(), disciplines__0__disciplineDescriptor=build_descriptor( 'Discipline', 'In School Suspension'), actualDisciplineActionLength=5)
def run_grading_period_scenarios(self): high_school_id = SchoolClient.shared_high_school_id() self.run_scenario('endDate', "2014-10-05") self.run_scenario(beginDate="2014-10-06", endDate="2014-12-15", totalInstructionalDays=30, gradingPeriodDescriptor=build_descriptor( "GradingPeriod", "Second Six Weeks")) self.run_scenario('endDate', "2014-10-05", schoolReference__schoolId=high_school_id) self.run_scenario(schoolReference__schoolId=high_school_id, beginDate="2014-10-06", endDate="2014-12-15", totalInstructionalDays=30, gradingPeriodDescriptor=build_descriptor( "GradingPeriod", "Second Six Weeks"))
def run_association_scenarios(self): self.run_scenario('endDate', '2014-12-10') self.run_scenario('endDate', '2014-12-10', schoolId=SchoolClient.shared_high_school_id())
def run_location_scenarios(self): self.run_scenario('maximumNumberOfSeats', 20) self.run_scenario('maximumNumberOfSeats', 18, classroomIdentificationCode=RandomSuffixAttribute("901"), schoolReference__schoolId=SchoolClient.shared_high_school_id())
def run_session_scenarios(self): self.run_scenario('endDate', "2014-12-16") self.run_scenario('endDate', "2014-12-16", schoolId=SchoolClient.shared_high_school_id())