Skip to content

Add connector test coverage: Reddit, YouTube, Letterboxd (63 tests) - #32

Open
brooksRoley wants to merge 1 commit into
mainfrom
test/connector-coverage
Open

Add connector test coverage: Reddit, YouTube, Letterboxd (63 tests)#32
brooksRoley wants to merge 1 commit into
mainfrom
test/connector-coverage

Conversation

@brooksRoley

Copy link
Copy Markdown
Owner

Extends backend connector test coverage — "welcome work" per the ChannelZero routine. Three previously-untested connectors now have suites following the established FakeConn / test_github_connector.py / test_spotify_connector.py pattern (hermetic — no real DB or network; httpx and LLM fully mocked).

What's added

Connector File Tests
Reddit server/tests/test_reddit_connector.py 21
YouTube server/tests/test_youtube_connector.py 23
Letterboxd server/tests/test_letterboxd_connector.py 19

Each suite covers: the pure _distill_profile function (shape, aggregation, caps, defaults), /profile (null vs JSON-string vs dict passthrough), /analyze (404 guards + mocked-LLM narrative), and the /connect 503-not-configured guard. Letterboxd additionally covers its /ingest flow (search→entries→watchlist, correct store_provider_data call, 404 on unknown username).

Verification

  • Full backend suite: 235 passed (was 172 before this session's testing work), 0 failures.
  • No production code touched — test-only additions.

Notes from the agents

  • No router bugs found in any of the three connectors.
  • YouTube's /connect correctly gates on google_client_id (shared Google OAuth app), not a youtube-specific id — the test asserts this.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
channelzero Ready Ready Preview Aug 11, 2026 12:00am

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