Skip to content

Add SSE stream unit tests (market data backend complete)#4

Merged
team2human merged 1 commit intomainfrom
claude/issue-3-20260328-1235
Mar 28, 2026
Merged

Add SSE stream unit tests (market data backend complete)#4
team2human merged 1 commit intomainfrom
claude/issue-3-20260328-1235

Conversation

@team2human
Copy link
Copy Markdown
Owner

Completes the market data backend test suite by adding test_stream.py for the SSE streaming module in backend/tests/market/.

All market data components were built in PR #2:

  • interface.py — MarketDataSource ABC
  • simulator.py — GBMSimulator + SimulatorDataSource
  • massive_client.py — MassiveDataSource (Polygon.io)
  • cache.py, models.py, factory.py, stream.py

Closes #3

Generated with Claude Code

Complete the market data test suite by adding tests for the SSE
streaming endpoint in stream.py, which was the only untested module.
Tests cover router creation, event generation, version-based change
detection, disconnect handling, and SSE payload format.

Co-authored-by: team2human <team2human@users.noreply.github.com>
@team2human team2human merged commit 993f89c into main Mar 28, 2026
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.

Build complete Market Data backed

1 participant