Skip to content

test: takeout-worker coverage to 90#85

Merged
chutch3 merged 1 commit into
mainfrom
feat/takeout-worker-90
Jun 23, 2026
Merged

test: takeout-worker coverage to 90#85
chutch3 merged 1 commit into
mainfrom
feat/takeout-worker-90

Conversation

@chutch3

@chutch3 chutch3 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Raises takeout-worker combined coverage 89% → 99% and the gate 70 → 90:

  • runners.py (was 23%): CurlRunner success / non-retryable 401 / retry-then-exhaust (asyncio.sleep patched); TarRunner success / dest-create failure / every tar stderr branch. subprocess patched at the adapter boundary — the runners are the owned abstraction over curl/tar.
  • logger.py (was 29%): StructuredFormatter core fields + optional context fields present/absent.
  • services.py extract_chunk error paths: missing params, missing required keys, archive-not-found, tar-runner failure, unexpected exception.

Only defensive lines remain uncovered (an unreachable trailing return, a cleanup-failure warning). Follows the dev-context Python rules (class-per-class, subject fixtures, spec= mocks, strong assertions).

🤖 Generated with Claude Code

@chutch3 chutch3 merged commit c368a59 into main Jun 23, 2026
4 checks passed
@chutch3 chutch3 deleted the feat/takeout-worker-90 branch June 23, 2026 17:07
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