Skip to content

Hoist GoalView methods, drop client duck probes, and fix guard layer tests - #2227

Merged
trissim merged 1 commit into
mainfrom
toad-qt/hoist-goal-view-and-client-duck-probes
Nov 24, 2026
Merged

trissim merged 1 commit into
mainfrom
toad-qt/hoist-goal-view-and-client-duck-probes

Conversation

@trissim

@trissim trissim commented Nov 24, 2026

Copy link
Copy Markdown

Summary

  • Hoisted change_goal and refresh_goal from Conversation onto GoalView (fixing test_goal_interaction.py and test_session_observation.py).
  • Removed remaining getattr/hasattr duck probes in toad.client:
    • bus_connect.py: typed PeerRefusedProfile pattern match / isinstance check instead of getattr(asked, 'refusal', '').
    • application.py: declared _saved_settings: SavedSettings | None = None on ClientApplication instead of hasattr/getattr.
    • transfer_forms.py: declared request_kind: ClassVar[type[Transfer] | None] = None on TransferForm instead of getattr.
  • Renamed WelcomeSectionLine.opens -> opens_expanded (matching TargetLine.opens_expanded) and updated test_deleted_interface_mechanisms.py's open_link home to shared link_opening.py.
  • Moved loose root tests/test_*.py and frontend-importing tests/model/ modules into tests/guards/ and tests/textual/, removed literal /home/ strings from test_message_files.py and test_message_file_attach.py, and added the 3 missing abstract PromptComposer hooks to test_message_files.py's test subclass.

Checks

  • pytest -q across all fixed guard suites + moved tests: 87 passed.

…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).
@trissim
trissim merged commit a7111b7 into main Nov 24, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant