Skip to content

Conversation

@Opselon
Copy link
Owner

@Opselon Opselon commented Nov 10, 2025

  • Patched SSHManager.disconnect to use the correct conn.close() and await conn.wait_closed() pattern, resolving a TypeError.
  • Added pytest-mock to the project dependencies to fix the "mocker not found" test error.
  • Refactored test_run_command_always_closes_connection to use a more accurate mock for asyncssh streams, resolving an AttributeError.
  • Fixed test_apply_update_failure_and_rollback by creating dummy files and mocking shutil.copy, ensuring the test correctly validates the rollback logic.

- Patched `SSHManager.disconnect` to use the correct `conn.close()` and `await conn.wait_closed()` pattern, resolving a `TypeError`.
- Added `pytest-mock` to the project dependencies to fix the "mocker not found" test error.
- Refactored `test_run_command_always_closes_connection` to use a more accurate mock for `asyncssh` streams, resolving an `AttributeError`.
- Fixed `test_apply_update_failure_and_rollback` by creating dummy files and mocking `shutil.copy`, ensuring the test correctly validates the rollback logic.
@Opselon Opselon merged commit d6c0525 into main Nov 10, 2025
1 check 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.

2 participants