Skip to content

feat(broadcasting): add Broadcast.pyi stub + full broadcasting test suite#94

Merged
bedus-creation merged 3 commits into
mainfrom
task/broadcasting-pyi-stub-and-tests
Jun 7, 2026
Merged

feat(broadcasting): add Broadcast.pyi stub + full broadcasting test suite#94
bedus-creation merged 3 commits into
mainfrom
task/broadcasting-pyi-stub-and-tests

Conversation

@bedus-creation

Copy link
Copy Markdown
Contributor

Summary

  • Adds the full Reverb broadcasting module (broadcasting/) — Pusher-protocol WebSocket server + Laravel-style broadcast API
  • Adds facades/Broadcast.pyi type stub exposing event() and channel() with correct signatures
  • Adds 31-test suite covering all components:
    • test_channels.py — Channel, PrivateChannel (private-), PresenceChannel (presence-) prefixes
    • test_event.py — BroadcastEvent methods, ShouldBroadcast ABC enforcement
    • test_log_driver.py — LogDriver logs correct channel/event/data
    • test_reverb_server.py — WS connect → connection_established, ping/pong, subscribe → succeeded, broadcast delivery
    • test_manager.py — driver resolution, unknown driver error, event dispatch
    • test_broadcast_helper.py — helper resolves broadcasting key and calls manager.event()

Test plan

  • uv run pytest tests/broadcasting/ -v31 passed
  • All tests pass with no regressions

🤖 Generated with Claude Code

bedus-creation and others added 3 commits June 7, 2026 15:50
…b + full test suite

Adds the complete Reverb broadcasting module (Pusher-protocol WebSocket server +
Laravel-style broadcast API), the Broadcast.pyi type stub, and a 31-test suite
covering channels, events, drivers, the Reverb WS server, manager, and helper.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- test_channels.py: remove unused `import pytest`
- test_log_driver.py: remove unused `import logging` and `MagicMock`

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bedus-creation bedus-creation merged commit fa4b748 into main Jun 7, 2026
3 checks passed
@bedus-creation bedus-creation deleted the task/broadcasting-pyi-stub-and-tests branch June 8, 2026 07:34
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