Skip to content

Remove InMemoryPlatformConnection and migrate tests to mock drive service#133

Merged
koenvanderveen merged 2 commits intomainfrom
koen/remove-inmemory-connection
Feb 17, 2026
Merged

Remove InMemoryPlatformConnection and migrate tests to mock drive service#133
koenvanderveen merged 2 commits intomainfrom
koen/remove-inmemory-connection

Conversation

@koenvanderveen
Copy link
Collaborator

Summary

  • Migrated all 18 test calls in test_checkpoints.py and test_rolling_state.py from _pair_with_in_memory_connection to pair_with_mock_drive_service_connection
  • Deleted inmemory_connection.py (684 lines) and deprecated main.ipynb notebook
  • Removed _pair_with_in_memory_connection factory method and InMemoryPlatformConnection import from SyftboxManager
  • Renamed base_config_for_in_memory_connection_base_config_for_testing (still used by mock drive service setup)
  • Simplified _add_connection guard to only allow MockDriveService connections

Test plan

  • All 178 unit tests pass (just test-unit)
  • Checkpoint tests (12 tests) pass with mock drive service
  • Rolling state tests (8 tests) pass with mock drive service
  • No remaining references to InMemoryPlatformConnection in codebase

🤖 Generated with Claude Code

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

…vice

- Migrate test_checkpoints.py and test_rolling_state.py from
  _pair_with_in_memory_connection to pair_with_mock_drive_service_connection
- Delete inmemory_connection.py (684 lines) and deprecated main.ipynb
- Remove _pair_with_in_memory_connection factory method from SyftboxManager
- Rename base_config_for_in_memory_connection to _base_config_for_testing
- Simplify _add_connection guard to only allow MockDriveService connections

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@koenvanderveen koenvanderveen force-pushed the koen/remove-inmemory-connection branch from 17db941 to 0286781 Compare February 17, 2026 12:20
…ove-inmemory-connection

# Conflicts:
#	syft_client/sync/connections/inmemory_connection.py
@koenvanderveen koenvanderveen merged commit eca8514 into main Feb 17, 2026
3 of 5 checks passed
@koenvanderveen koenvanderveen deleted the koen/remove-inmemory-connection branch February 17, 2026 12:29
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

Comments