Skip to content

Type UAV peer contract tests#247

Closed
ethayu wants to merge 1 commit into
user/ethayu/workspace-pylance-uav-test-stubsfrom
user/ethayu/workspace-pylance-uav-peer-contracts
Closed

Type UAV peer contract tests#247
ethayu wants to merge 1 commit into
user/ethayu/workspace-pylance-uav-test-stubsfrom
user/ethayu/workspace-pylance-uav-peer-contracts

Conversation

@ethayu
Copy link
Copy Markdown
Collaborator

@ethayu ethayu commented May 27, 2026

Fixes #246.
Part of #201.
Stacked on #243.

Summary

  • Cast isolated ModeManager and node fakes used by peer contract tests.
  • Align peer mode override signatures with the Mode peer contract.
  • Narrow live reconnect status payload fields before integer comparisons.

Verification

  • python3 -m py_compile controls/sae_2025_ws/src/uav/test/test_peer_runtime_contract.py controls/sae_2025_ws/src/uav/test/test_peer_stack_reconnect.py
  • npx --yes pyright controls/sae_2025_ws/src/uav/test/test_peer_runtime_contract.py controls/sae_2025_ws/src/uav/test/test_peer_stack_reconnect.py --outputjson => 0 errors
  • ruff format controls/sae_2025_ws/src/uav/test/test_peer_runtime_contract.py controls/sae_2025_ws/src/uav/test/test_peer_stack_reconnect.py
  • ruff check controls/sae_2025_ws/src/uav/test/test_peer_runtime_contract.py controls/sae_2025_ws/src/uav/test/test_peer_stack_reconnect.py
  • python3 -m pytest -q controls/sae_2025_ws/src/uav/test/test_peer_runtime_contract.py => 12 passed
  • python3 -m pytest -q controls/sae_2025_ws/src/uav/test/test_peer_stack_reconnect.py => 1 passed

@ethayu ethayu force-pushed the user/ethayu/workspace-pylance-uav-peer-contracts branch from 5eba996 to d276932 Compare May 27, 2026 08:38
@ethayu ethayu changed the base branch from user/ethayu/workspace-pylance-uav-test-fakes to user/ethayu/workspace-pylance-uav-test-stubs May 27, 2026 08:39
@ethayu
Copy link
Copy Markdown
Collaborator Author

ethayu commented May 27, 2026

Folded into #243 as a separate commit; closing to keep UAV test typing in one PR.

@ethayu ethayu closed this May 27, 2026
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