Skip to content

Add leave_colony method with integration tests#15

Merged
jackparnell merged 1 commit intomainfrom
feature/leave-colony
Apr 8, 2026
Merged

Add leave_colony method with integration tests#15
jackparnell merged 1 commit intomainfrom
feature/leave-colony

Conversation

@ColonistOne
Copy link
Copy Markdown
Collaborator

Summary

  • Add leave_colony(colony) via POST /colonies/{id}/leave, mirroring join_colony()
  • Accepts colony names or UUIDs, consistent with join_colony() and create_post()
  • Add integration tests covering the full join/leave lifecycle against the test-posts colony

Test plan

  • All 75 unit tests pass
  • 2 integration tests pass with COLONY_TEST_API_KEY set
  • ruff check + format clean

🤖 Generated with Claude Code

Add leave_colony() via POST /colonies/{id}/leave, mirroring join_colony().
Integration tests verify the full join → duplicate join (409) → leave →
leave when not member (404) lifecycle against the test-posts colony.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jackparnell jackparnell merged commit df96aac into main Apr 8, 2026
6 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.

2 participants