Draft
Add unit test coverage across 16 source files (~96% → improved baseline)#188
Conversation
Copilot created this pull request from a session on behalf of
bduke-dev
July 25, 2026 10:51
View session
Copilot stopped work on behalf of
bduke-dev due to an error
July 25, 2026 11:29
Co-authored-by: bduke-dev <7875574+bduke-dev@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends unit test coverage for the PARTs WebAPI Django REST project, targeting files identified in
docs/UNIT_TEST_PROGRESS.mdwith missing statement coverage.New Test Files
tests/admin/test_admin_phone_type_extra.py—admin/views.pyPhoneType update-by-ID pathtests/attendance/test_attendance_extra.py—attendance/util.pyexempt-meeting and end_meeting loop;attendance/views.pysave successtests/general/test_general_cloudinary_extra.py—general/cloudinary.pybuild_image_url(None)→return Nonetests/public/test_public_competition_extra.py—public/competition/views.pyouter exception handlertests/scouting/test_scouting_easy_wins.py—scoutingmodel__str__methods, serializer field methods, util branchestests/sponsoring/test_sponsoring_extra.py—sponsoring/views.pyinvalid-data path;user/models.UserImage.__str__tests/form/test_form_views_extra.py—form/views.pysend_email_notificationfor team-app/team-cntct form typestests/alerts/test_alerts_extra.py—alerts/util.py,alerts/views.py,alerts/util_alert_definitions.pystage/send branchestests/scouting/test_scouting_strategizing_extra2.py—strategizing/views.pyandstrategizing/util.pygraph/dashboard branchestests/scouting/test_scouting_field_extra2.py—scouting/field/views.pydirect view invocation (URL is commented out);scouting/field/util.pycheck-in red/blue positionstests/user/test_user_extra.py—user/util.pyanduser/views.pypermission, image, superuser-field update pathstests/tba/test_tba_extra.py—tba/util.pysync and match-save branchestests/scouting/test_scouting_admin_views_extra2.py—scouting/admin/views.pyschedule, mark-present, event-admin pathstests/scouting/test_scouting_admin_util_extra2.py—scouting/admin/util.pydelete cascades, team linking, schedule save, field form image upload, user-seasontests/form/test_form_util_extra2.py—form/util.pyflow/question/aggregate save paths,send_email_notificationNotes
ScoutingResponsesViewis commented out ofscouting/field/urls.py; tests invoke it directly viaAPIRequestFactory+view = ScoutingResponsesView.as_view().access_response/has_accesswithside_effect=lambda ...: fun()to isolate inner view logic.