intranet.apps.eighth.tests package¶
Subpackages¶
- intranet.apps.eighth.tests.admin package
- Submodules
- intranet.apps.eighth.tests.admin.test_admin_activities module
- intranet.apps.eighth.tests.admin.test_admin_attendance module
EighthAdminAttendanceTest
EighthAdminAttendanceTest.test_activities_without_attendance_view()
EighthAdminAttendanceTest.test_after_deadline_signup_view()
EighthAdminAttendanceTest.test_clear_absence_view()
EighthAdminAttendanceTest.test_delinquent_students_view()
EighthAdminAttendanceTest.test_migrate_outstanding_passes_view()
EighthAdminAttendanceTest.test_no_signups_roster()
EighthAdminAttendanceTest.test_open_passes_view()
EighthAdminAttendanceTest.test_out_of_building_schedules_view()
EighthAdminAttendanceTest.test_take_attendance_cancelled()
EighthAdminAttendanceTest.test_take_attendance_zero()
- intranet.apps.eighth.tests.admin.test_admin_blocks module
- intranet.apps.eighth.tests.admin.test_admin_general module
- intranet.apps.eighth.tests.admin.test_admin_groups module
EighthAdminGroupsTest
EighthAdminGroupsTest.test_add_group_view()
EighthAdminGroupsTest.test_add_member_to_group_view()
EighthAdminGroupsTest.test_delete_empty_groups()
EighthAdminGroupsTest.test_delete_group_view()
EighthAdminGroupsTest.test_download_group_csv_view()
EighthAdminGroupsTest.test_edit_group_view()
EighthAdminGroupsTest.test_eighth_admin_distribute_action()
EighthAdminGroupsTest.test_eighth_admin_distribute_group()
EighthAdminGroupsTest.test_eighth_admin_distribute_unsigned()
EighthAdminGroupsTest.test_eighth_admin_signup_group()
EighthAdminGroupsTest.test_remove_member_from_group_view()
EighthAdminGroupsTest.test_upload_group_members_view()
- intranet.apps.eighth.tests.admin.test_admin_maintenance module
- intranet.apps.eighth.tests.admin.test_admin_rooms module
EighthAdminRoomsTest
EighthAdminRoomsTest.test_add_room_view()
EighthAdminRoomsTest.test_delete_room_view()
EighthAdminRoomsTest.test_edit_room_view()
EighthAdminRoomsTest.test_eighth_room_utilization()
EighthAdminRoomsTest.test_room_sanity_check_view()
EighthAdminRoomsTest.test_room_utilization_for_block_view()
EighthAdminRoomsTest.test_room_utilization_view()
- intranet.apps.eighth.tests.admin.test_admin_scheduling module
EighthAdminSchedulingTest
EighthAdminSchedulingTest.test_distribute_students_view()
EighthAdminSchedulingTest.test_remove_duplicates_view()
EighthAdminSchedulingTest.test_room_change_notification_view()
EighthAdminSchedulingTest.test_schedule_activity_view()
EighthAdminSchedulingTest.test_show_activity_schedule_view()
EighthAdminSchedulingTest.test_transfer_students()
- intranet.apps.eighth.tests.admin.test_admin_sponsors module
EighthAdminSponsorsTest
EighthAdminSponsorsTest.test_add_sponsor_view()
EighthAdminSponsorsTest.test_delete_sponsor_view()
EighthAdminSponsorsTest.test_edit_sponsor_view()
EighthAdminSponsorsTest.test_list_sponsor_activity_view()
EighthAdminSponsorsTest.test_list_sponsor_view()
EighthAdminSponsorsTest.test_sponsor_sanity_check_view()
EighthAdminSponsorsTest.test_sponsor_schedule_view()
- intranet.apps.eighth.tests.admin.test_admin_users module
- Module contents
Submodules¶
intranet.apps.eighth.tests.eighth_test module¶
- class intranet.apps.eighth.tests.eighth_test.EighthAbstractTest(methodName='runTest')[source]¶
Bases:
IonTestCase
Base class to be inherited by the test cases for the Eighth app.
- add_activity(name: str, **args) EighthActivity [source]¶
Add an EighthActivity.
- Parameters:
name – The name of the activity to add
args – The remaining arguments are passed to
add_activity_view()
.
- Returns:
The EighthActivity added.
- add_block(date: str, block_letter: str, **kwargs) EighthBlock [source]¶
Adds an EighthBlock. Arguments are passed to intranet.apps.eighth.forms.admin.blocks.QuickBlockForm.
- Parameters:
date – Date in YYYY-MM-DD format
block_letter – The corresponding block letter
- Returns:
The EighthBlock that was created.
- add_room(name: str, capacity: int = 1, **kwargs) EighthRoom [source]¶
Adds an EighthRoom. Arguments are passed to intranet.apps.eighth.forms.admin.rooms.RoomForm.
- Parameters:
name – The name of the room.
capacity – The room capacity.
- Returns:
The EighthRoom created.
- schedule_activity(block_id: int, activity_id: int, capacity: int = 1) EighthScheduledActivity [source]¶
Creates an EighthScheduledActivity; aka schedule an eighth period activity.
- Parameters:
block_id – The block ID
activity_id – Activity ID
capacity – Maximum capacity for this activity
- Returns:
The EighthScheduledActivity created.
- verify_signup(user: User, schact: EighthScheduledActivity)[source]¶
intranet.apps.eighth.tests.test_activities module¶
- class intranet.apps.eighth.tests.test_activities.EighthActivitiesTestCase(methodName='runTest')[source]¶
Bases:
EighthAbstractTest
Test cases for
views.activities
.
intranet.apps.eighth.tests.test_attendance module¶
- class intranet.apps.eighth.tests.test_attendance.EighthAttendanceTestCase(methodName='runTest')[source]¶
Bases:
EighthAbstractTest
Test cases for
views.attendance
.- test_accept_all_passes_view()[source]¶
Tests
accept_all_passes_view()
.
- test_accept_pass_view()[source]¶
Tests
accept_pass_view()
.
- test_attendance_export_csv()[source]¶
Tests the “export CSV” function in
take_attendance_view()
.
- test_generate_roster_pdf()[source]¶
Tests
generate_roster_pdf()
- test_raw_roster_view()[source]¶
Tests
raw_roster_view()
.
- test_take_attendance()[source]¶
Makes sure that taking attendance for activities with multiple students signed up works.
- test_take_attendance_google_meet_csv()[source]¶
Make sure taking attendance through an uploaded Google Meet file works.
intranet.apps.eighth.tests.test_commands module¶
- class intranet.apps.eighth.tests.test_commands.EighthCommandsTest(methodName='runTest')[source]¶
Bases:
EighthAbstractTest
intranet.apps.eighth.tests.test_exceptions module¶
- class intranet.apps.eighth.tests.test_exceptions.EighthExceptionTest(methodName='runTest')[source]¶
Bases:
IonTestCase
intranet.apps.eighth.tests.test_general module¶
- class intranet.apps.eighth.tests.test_general.EighthTest(methodName='runTest')[source]¶
Bases:
EighthAbstractTest
Tests for the eighth module.
- test_all_associated_rooms()[source]¶
Make sure EighthScheduledActivities can return all associated rooms.
intranet.apps.eighth.tests.test_monitoring module¶
- class intranet.apps.eighth.tests.test_monitoring.EighthMonitoringTest(methodName='runTest')[source]¶
Bases:
EighthAbstractTest
- test_metrics_view()[source]¶
Tests
metrics_view()
.
intranet.apps.eighth.tests.test_profile module¶
- class intranet.apps.eighth.tests.test_profile.EighthProfileTest(methodName='runTest')[source]¶
Bases:
EighthAbstractTest
intranet.apps.eighth.tests.test_routers module¶
- class intranet.apps.eighth.tests.test_routers.EighthAttendanceTestCase(methodName='runTest')[source]¶
Bases:
EighthAbstractTest
Test cases for
views.routers
.- test_eighth_redirect_view()[source]¶
Tests
eighth_redirect_view()
.
intranet.apps.eighth.tests.test_signup module¶
- class intranet.apps.eighth.tests.test_signup.EighthSignupTest(methodName='runTest')[source]¶
Bases:
EighthAbstractTest
- test_eighth_location_view()[source]¶
Tests
eighth_location()
.
- test_set_sticky_students()[source]¶
Test
set_sticky_students()
.