Skip to content

test: cover run_async_safely and sync wrappers#21

Merged
DiTo97 merged 1 commit intomainfrom
test/run-async-safely-sync-wrapper-coverage
Apr 15, 2026
Merged

test: cover run_async_safely and sync wrappers#21
DiTo97 merged 1 commit intomainfrom
test/run-async-safely-sync-wrapper-coverage

Conversation

@DiTo97
Copy link
Copy Markdown
Owner

@DiTo97 DiTo97 commented Apr 15, 2026

Summary

  • add focused unit tests for run_async_safely() covering no-loop, running-loop, timeout, and exception cases
  • add thin sync-wrapper delegation checks for both backends so the sync API surface is covered without duplicating async behavior tests
  • keep the branch scoped to the first stacked PR in the test coverage plan

Test plan

  • uv run pytest tests/unit/test_run_async_safely.py -q
  • uv run pytest tests/unit/test_s3_backend.py tests/unit/test_postgres_backend.py -q
  • uv run pytest -m unit -q
  • uv run ruff check .
  • uv run pytest -m integration -q (Docker not running in this environment)

🤖 Generated with Claude Code

Add focused unit coverage for the sync execution helper and verify that each backend's sync API delegates through it, so future changes to sync behavior fail fast.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@DiTo97 DiTo97 merged commit be37483 into main Apr 15, 2026
3 checks passed
@DiTo97 DiTo97 deleted the test/run-async-safely-sync-wrapper-coverage branch April 15, 2026 08:33
@DiTo97 DiTo97 restored the test/run-async-safely-sync-wrapper-coverage branch April 15, 2026 08:35
@DiTo97 DiTo97 deleted the test/run-async-safely-sync-wrapper-coverage branch April 15, 2026 08:39
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