Repository navigation
Hoist GoalView methods, drop client duck probes, and fix guard layer tests - #2227
Merged
Merged
Conversation
…tests - GoalView: own change_goal and refresh_goal (removed from Conversation), fixing test_goal_interaction.py and test_session_observation.py. - toad.client duck probes: replace getattr/hasattr in bus_connect.py (typed PeerRefusedProfile match), application.py (declare _saved_settings = None on ClientApplication), and transfer_forms.py (declare request_kind = None on TransferForm). - WelcomeSectionLine.opens -> opens_expanded (matching TargetLine.opens_expanded) and update test_deleted_interface_mechanisms.py open_link home to link_opening.py. - Move loose root tests and frontend-importing model tests into tests/guards/ and tests/textual/, remove machine /home/ literals from test_message_files.py and test_message_file_attach.py, and complete abstract PromptComposer test hooks in test_message_files.py (fixing all test_test_layers.py checks).
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.
Summary
change_goalandrefresh_goalfromConversationontoGoalView(fixingtest_goal_interaction.pyandtest_session_observation.py).getattr/hasattrduck probes intoad.client:bus_connect.py: typedPeerRefusedProfilepattern match /isinstancecheck instead ofgetattr(asked, 'refusal', '').application.py: declared_saved_settings: SavedSettings | None = NoneonClientApplicationinstead ofhasattr/getattr.transfer_forms.py: declaredrequest_kind: ClassVar[type[Transfer] | None] = NoneonTransferForminstead ofgetattr.WelcomeSectionLine.opens->opens_expanded(matchingTargetLine.opens_expanded) and updatedtest_deleted_interface_mechanisms.py'sopen_linkhome to sharedlink_opening.py.tests/test_*.pyand frontend-importingtests/model/modules intotests/guards/andtests/textual/, removed literal/home/strings fromtest_message_files.pyandtest_message_file_attach.py, and added the 3 missing abstractPromptComposerhooks totest_message_files.py's test subclass.Checks
pytest -qacross all fixed guard suites + moved tests: 87 passed.