TS API Unit Tests

eruditiontx-services-mvp · pytest
generated 2026-10-04 09:33 UTC · commit 6c446331
Lines
91.6%
Statements
91.6%
Branches
0.0%

Coverage by file

lowest first · 114 files
FileCoveredMissingLines
server/worker/student_identity_sync_task.py 17/34 17
50.0%
server/services/growthbook/admin_db.py 2/3 1
66.7%
server/routes/teacher/teacher_features.py 31/45 14
68.9%
server/services/growthbook/teacher_assignment_quota.py 79/112 33
70.5%
server/routes/teacher/teacher_dashboard.py 18/25 7
72.0%
server/utilities/email_utils.py 48/65 17
73.8%
server/validators/feature_enum.py 17/23 6
73.9%
server/utilities/image_processing.py 18/24 6
75.0%
server/utilities/graph_data_checker.py 282/374 92
75.4%
server/services/growthbook/dependencies.py 22/29 7
75.9%
server/services/growthbook/organization.py 60/77 17
77.9%
server/services/growthbook/evaluation.py 56/71 15
78.9%
server/validators/accounts_validator.py 59/74 15
79.7%
server/utilities/html_sanitizer.py 43/52 9
82.7%
server/services/teacher/teacher_classes.py 521/627 106
83.1%
server/models/account.py 112/131 19
85.5%
server/services/common/auth0_management.py 84/98 14
85.7%
server/routes/student/student_features.py 36/42 6
85.7%
server/routes/teacher/teacher_question_import.py 112/130 18
86.2%
server/validators/question_request_root_validators.py 331/381 50
86.9%
server/connection/database.py 100/115 15
87.0%
server/models/users.py 288/331 43
87.0%
server/rate_limit.py 27/31 4
87.1%
server/validators/question_richtext.py 27/31 4
87.1%
server/routes/student/student_dashboard_ws.py 55/63 8
87.3%
server/services/teacher/teacher_question.py 649/737 88
88.1%
server/authentication/auth0_bearer.py 158/179 21
88.3%
server/services/growthbook/registry.py 77/87 10
88.5%
server/authentication/cookie_session.py 39/44 5
88.6%
server/models/clients.py 231/260 29
88.8%
server/utilities/model_parser.py 130/146 16
89.0%
server/connection/storage_bucket.py 25/28 3
89.3%
server/services/common/users.py 285/317 32
89.9%
server/worker/auth0_reconciliation.py 161/176 15
91.5%
server/app.py 166/181 15
91.7%
server/routes/auth0/auth_routes.py 187/203 16
92.1%
server/routes/teacher/teacher_assignment.py 74/80 6
92.5%
server/validators/question_bank/field_validations.py 111/119 8
93.3%
server/utilities/refresh_single_flight.py 73/78 5
93.6%
server/services/teacher/teacher_assignment.py 856/910 54
94.1%
server/services/teacher/teacher_dashboard.py 48/51 3
94.1%
server/authentication/auth0_handler.py 75/79 4
94.9%
server/models/assignment_submit.py 42/44 2
95.5%
server/services/common/question_bank.py 67/70 3
95.7%
server/routes/common/auth0_webhook.py 122/127 5
96.1%
server/services/teacher/question_import.py 75/78 3
96.2%
server/utilities/user_id_helper.py 25/26 1
96.2%
server/models/assignment.py 352/366 14
96.2%
server/services/student/student_assignment.py 640/665 25
96.2%
server/services/common/answer_checking.py 107/111 4
96.4%
server/models/class_message.py 27/28 1
96.4%
server/routes/student/student_account.py 58/60 2
96.7%
server/services/common/assignments.py 283/292 9
96.9%
server/routes/common/assignments.py 34/35 1
97.1%
server/utilities/assignment_dedupe.py 34/35 1
97.1%
server/validators/assignment_validator.py 38/39 1
97.4%
server/services/common/student_identity_sync.py 45/46 1
97.8%
server/services/student/student_theme.py 93/95 2
97.9%
server/utilities/exam_catalog.py 58/59 1
98.3%
server/services/teacher/teacher_account.py 175/178 3
98.3%
server/routes/teacher/teacher_account.py 61/62 1
98.4%
server/utilities/gradebook.py 62/63 1
98.4%
server/services/student/student_classes.py 340/345 5
98.6%
server/models/classes.py 182/184 2
98.9%
server/services/teacher/teacher_theme.py 94/95 1
98.9%
server/models/themes.py 155/156 1
99.4%
server/models/question_bank.py 180/180
100.0%
server/services/student/student_dashboard.py 134/134
100.0%
server/validators/question_class_enum.py 88/88
100.0%
server/services/growthbook/client.py 87/87
100.0%
server/services/growthbook/context.py 87/87
100.0%
server/routes/teacher/teacher_question.py 78/78
100.0%
server/routes/teacher/teacher_classes.py 64/64
100.0%
server/services/growthbook/user_scope.py 64/64
100.0%
server/services/common/password_update.py 57/57
100.0%
server/validators/question_bank/input_validations.py 57/57
100.0%
server/services/growthbook/cache.py 52/52
100.0%
server/utilities/websocket_manager.py 48/48
100.0%
server/routes/student/student_assignments.py 35/35
100.0%
server/utilities/assignment_update.py 34/34
100.0%
server/models/sharerequests.py 33/33
100.0%
server/routes/student/student_classes.py 28/28
100.0%
server/routes/student/student_dashboard.py 26/26
100.0%
server/services/teacher/question_dedup.py 26/26
100.0%
server/services/growthbook/global_assignment_gate.py 24/24
100.0%
server/authentication/auth0_config.py 23/23
100.0%
server/utilities/helpers.py 23/23
100.0%
server/services/growthbook/config.py 22/22
100.0%
server/utilities/answer_match.py 22/22
100.0%
server/utilities/readiness.py 22/22
100.0%
server/routes/student/student_theme.py 21/21
100.0%
server/services/growthbook/catalog.py 20/20
100.0%
server/routes/teacher/teacher_theme.py 19/19
100.0%
server/services/common/theme_ownership.py 16/16
100.0%
server/utilities/file_handler.py 16/16
100.0%
server/worker/celery_worker.py 16/16
100.0%
server/utilities/pagination.py 15/15
100.0%
server/utilities/sample_payloads.py 15/15
100.0%
server/validators/user_enum.py 13/13
100.0%
server/utilities/redis_url.py 12/12
100.0%
server/utilities/class_dedupe.py 11/11
100.0%
server/routes/common/health.py 9/9
100.0%
server/routes/teacher/teacher_students.py 9/9
100.0%
server/services/growthbook/__init__.py 8/8
100.0%
server/authentication/bcrypter.py 7/7
100.0%
server/validators/class_code_validator.py 7/7
100.0%
server/services/growthbook/overrides.py 6/6
100.0%
server/validators/query_params_validators.py 6/6
100.0%
server/utilities/error_detail.py 5/5
100.0%
server/routes/common/users.py 2/2
100.0%
server/utilities/class_limits.py 2/2
100.0%
server/__init__.py 0/0
100.0%
server/utilities/__init__.py 0/0
100.0%
server/worker/__init__.py 0/0
100.0%

Line-by-line report →